chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a351a67
)
missing: add more compat for old kernels and loop devices
author
Lennart Poettering
<lennart@poettering.net>
Fri, 21 Mar 2014 02:42:49 +0000
(
03:42
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 21 Mar 2014 02:43:47 +0000
(
03:43
+0100)
https://bugs.freedesktop.org/show_bug.cgi?id=76335
src/shared/missing.h
patch
|
blob
|
history
diff --git
a/src/shared/missing.h
b/src/shared/missing.h
index ce4a6e36f45ed031af0740305f695d85db8756f4..bc0fcd56afbf5430aa8ff25668d17b272f021110 100644
(file)
--- a/
src/shared/missing.h
+++ b/
src/shared/missing.h
@@
-32,6
+32,7
@@
#include <linux/oom.h>
#include <linux/input.h>
#include <linux/if_link.h>
+#include <linux/loop.h>
#ifdef HAVE_AUDIT
#include <libaudit.h>
@@
-369,3
+370,11
@@
static inline int setns(int fd, int nstype) {
#if !HAVE_DECL_LO_FLAGS_PARTSCAN
#define LO_FLAGS_PARTSCAN 8
#endif
+
+#ifndef LOOP_CTL_REMOVE
+#define LOOP_CTL_REMOVE 0x4C81
+#endif
+
+#ifndef LOOP_CTL_GET_FREE
+#define LOOP_CTL_GET_FREE 0x4C82
+#endif