From: Guido Trotter Date: Sun, 26 Jul 2009 15:44:12 +0000 (+0200) Subject: Include before checking for netlink X-Git-Tag: lxc_0_6_4~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90e0a869ac5f3a889487126568f1d3c7c34b7046;p=thirdparty%2Flxc.git Include before checking for netlink With some versions of the compiler/headers linux/netlink.h won't compile if sys/socket.h is defined before it. Signed-off-by: Daniel Lezcano Signed-off-by: Guido Trotter --- diff --git a/configure.ac b/configure.ac index 93dc3273c..f79e1f07b 100644 --- a/configure.ac +++ b/configure.ac @@ -25,10 +25,11 @@ AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir) AS_AC_EXPAND(LXCPATH, "${localstatedir}/lib/lxc") AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)") -AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink headers not found. Please install the linux kernel headers.]), -[#include -#include -#include ]) +AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], + [], + AC_MSG_ERROR([netlink headers not found. Please install the linux kernel headers.]), + [#include + ]) AC_CHECK_HEADERS([sys/capability.h], [], AC_MSG_ERROR([please install libcap-devel.]), [#include