fix capability.h compilation problem

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>
This commit is contained in:
Daniel Lezcano 2009-06-12 16:02:14 +02:00
parent dbbf8b4ecb
commit ddceb1f9fa
2 changed files with 3 additions and 1 deletions

View 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>])

View 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>