summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-03-21 03:42:49 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-21 03:43:47 +0100
commita853c45d9a85adbed3fa5a4d93b051bf8161015b (patch)
treeb625eeaea10c1af0fd4b6886eee463836d5c38a3 /src
parenta351a679ed087a30574d4fec95fa88069f87d046 (diff)
missing: add more compat for old kernels and loop devices
https://bugs.freedesktop.org/show_bug.cgi?id=76335
Diffstat (limited to 'src')
-rw-r--r--src/shared/missing.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h
index ce4a6e36f4..bc0fcd56af 100644
--- 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