chiark / gitweb /
missing: define LO_FLAGS_PARTSCAN if it is missing
authorLennart Poettering <lennart@poettering.net>
Wed, 19 Mar 2014 00:10:14 +0000 (01:10 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 19 Mar 2014 00:10:14 +0000 (01:10 +0100)
https://bugs.freedesktop.org/show_bug.cgi?id=76335

configure.ac
src/shared/missing.h

index 9c8481e4b76cf35a51cad9bbd25ad64941678bf0..3ced6cf3d503d2f80aa95c9d533e115becd21637 100644 (file)
@@ -241,11 +241,12 @@ LIBS="$save_LIBS"
 
 AC_CHECK_FUNCS([fanotify_init fanotify_mark])
 AC_CHECK_FUNCS([__secure_getenv secure_getenv])
-AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, setns], [], [], [[#include <sys/types.h>
+AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, setns, LO_FLAGS_PARTSCAN], [], [], [[#include <sys/types.h>
 #include <unistd.h>
 #include <sys/mount.h>
 #include <fcntl.h>
-#include <sched.h>]])
+#include <sched.h>
+#include <linux/loop.h>]])
 
 # This makes sure pkg.m4 is available.
 m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
index 4e63fb9ac450a627adac1eb8e2788770036c2b80..ce4a6e36f45ed031af0740305f695d85db8756f4 100644 (file)
@@ -365,3 +365,7 @@ static inline int setns(int fd, int nstype) {
         return syscall(__NR_setns, fd, nstype);
 }
 #endif
+
+#if !HAVE_DECL_LO_FLAGS_PARTSCAN
+#define LO_FLAGS_PARTSCAN 8
+#endif