mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-07 15:04:43 +00:00
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:
parent
dbbf8b4ecb
commit
ddceb1f9fa
@ -31,7 +31,8 @@ AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink
|
|||||||
#include <linux/socket.h>])
|
#include <linux/socket.h>])
|
||||||
|
|
||||||
AC_CHECK_HEADERS([sys/capability.h], [], AC_MSG_ERROR([please install libcap-devel.]),
|
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
|
# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
|
||||||
AC_CHECK_DECLS([PR_CAPBSET_DROP], [], [], [#include <sys/prctl.h>])
|
AC_CHECK_DECLS([PR_CAPBSET_DROP], [], [], [#include <sys/prctl.h>])
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/prctl.h>
|
#include <sys/prctl.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <sys/capability.h>
|
#include <sys/capability.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user