]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix capability.h compilation problem
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 12 Jun 2009 14:02:14 +0000 (16:02 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 12 Jun 2009 14:02:14 +0000 (16:02 +0200)
The capability.h header is broken on fedora 11.
The workaround is to include <sys/types.h> before <sys/capability.h>.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
configure.ac
src/lxc/start.c

index b5f09d2f9a34fa4edc41453246dc2d97fd138ea1..19c980861cee9d7e74b85c7d0f915f7e51212798 100644 (file)
@@ -31,7 +31,8 @@ AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink
 #include <linux/socket.h>])
 
 AC_CHECK_HEADERS([sys/capability.h], [], AC_MSG_ERROR([please install libcap-devel.]),
-[#include <sys/capability.h>])
+[#include <sys/types.h>
+#include <sys/capability.h>])
 
 # Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
 AC_CHECK_DECLS([PR_CAPBSET_DROP], [], [], [#include <sys/prctl.h>])
index 0b085604ea0c1fa41fc43871f16f8d13de8165f6..da4afb9cc0d91460797f6b987e7210ff874f9ab4 100644 (file)
@@ -37,6 +37,7 @@
 #include <sys/mount.h>
 #include <sys/types.h>
 #include <sys/prctl.h>
+#include <sys/types.h>
 #include <sys/capability.h>
 #include <sys/wait.h>
 #include <sys/un.h>