]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix configure error when checking the netlink headers
authordlezcano <dlezcano>
Wed, 8 Oct 2008 11:24:31 +0000 (11:24 +0000)
committerdlezcano <dlezcano>
Wed, 8 Oct 2008 11:24:31 +0000 (11:24 +0000)
configure.in

index afeb64ced25e0c2ce7a4412915dd9bee600f73c6..80752f5332a2c20d56dd9f3268b1e587ca3b4e36 100644 (file)
@@ -12,7 +12,10 @@ AC_PROG_RANLIB
 AM_PROG_CC_C_O
 AC_GNU_SOURCE
 AC_PROG_LIBTOOL
-AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h],, AC_MSG_ERROR([netlink headers not found]), [[]])
+AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink headers not found]),
+                                 [#include <linux/types.h>
+                                  #include <bits/sockaddr.h>
+                                  #include <linux/socket.h>])
 AC_PROG_GCC_TRADITIONAL
 
 if test "x$GCC" = "xyes"; then