]> granicus.if.org Git - strace/commitdiff
test for linux/in6.h in configure
authorWichert Akkerman <wichert@deephackmode.org>
Mon, 1 Nov 1999 19:39:08 +0000 (19:39 +0000)
committerWichert Akkerman <wichert@deephackmode.org>
Mon, 1 Nov 1999 19:39:08 +0000 (19:39 +0000)
configure.in
net.c

index 948666874eac6da9815fd633aafcf8be9004bdcc..e68f4365cc361fafe9a68e04dcc4ec3a24f59d83 100644 (file)
@@ -126,7 +126,7 @@ AC_HEADER_MAJOR
 AC_SIG_ATOMIC_T
 AC_CHECK_LIB(nsl, main)
 AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl putpmsg prctl sendmsg inet_ntop)
-AC_CHECK_HEADERS(sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h sys/stream.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h)
+AC_CHECK_HEADERS(sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h sys/stream.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h linux/in6.h)
 AC_DECL_SYS_ERRLIST
 AC_DECL_SYS_SIGLIST
 AC_DECL__SYS_SIGLIST
diff --git a/net.c b/net.c
index 2026b64672134f5065e8f97f6961bbdf24de7d7c..8cbfece1484bb8c796565bcbca58555fcf44f3dd 100644 (file)
--- a/net.c
+++ b/net.c
 #endif
 #endif /* LINUX */
 
+
+#if defined( HAVE_LINUX_IN6_H)
+#include <linux/in6.h>
+#endif
+
 #ifndef PF_UNSPEC
 #define PF_UNSPEC AF_UNSPEC
 #endif