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 9c8481e..3ced6cf 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 4e63fb9..ce4a6e3 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