From 90e0a869ac5f3a889487126568f1d3c7c34b7046 Mon Sep 17 00:00:00 2001 From: Guido Trotter Date: Sun, 26 Jul 2009 17:44:12 +0200 Subject: [PATCH] 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 --- configure.ac | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.47.2