[PATCH] Fix check for linux/netlink.h on Linux 2.6.32-rc5+

Dmitry V. Levin ldv at altlinux.org
Tue Nov 3 17:12:30 UTC 2009


* configure.ac (AC_CHECK_HEADERS): In check for linux/netlink.h, include
sys/socket.h beforehand.
---
 configure.ac |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index c8450cd..0fd41f8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -258,6 +258,7 @@ AC_CHECK_HEADERS([ \
 ], [], [])
 AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h],
                  [], [], [#include <stddef.h>
+#include <sys/socket.h>
 #include <linux/socket.h>])
 AC_CHECK_HEADERS([asm/sigcontext.h], [], [], [#include <signal.h>])
 AC_CHECK_TYPES([struct sigcontext_struct,
-- 
ldv




More information about the Strace-devel mailing list