[lxc-devel] [PATCH] Include <sys/socket.h> before checking for netlink
Guido Trotter
ultrotter at google.com
Sun Jul 26 13:30:58 UTC 2009
With some versions of the compiler/headers linux/netlink.h won't compile
if sys/socket.h is defined before it.
Signed-off-by: Guido Trotter <ultrotter at quaqua.net>
---
configure.ac | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 93dc327..f79e1f0 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 <linux/types.h>
-#include <bits/sockaddr.h>
-#include <linux/socket.h>])
+AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h],
+ [],
+ AC_MSG_ERROR([netlink headers not found. Please install the linux kernel headers.]),
+ [#include <sys/socket.h>
+ ])
AC_CHECK_HEADERS([sys/capability.h], [], AC_MSG_ERROR([please install libcap-devel.]),
[#include <sys/types.h>
--
1.5.6.5
More information about the lxc-devel
mailing list