summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-01-27 15:52:03 +0100
committerMichael Adam <obnox@samba.org>2009-01-27 15:52:03 +0100
commit1868bfd40f7bf4caf9a31116111fa3a5169f4735 (patch)
treeb90f7d344e63ce0151528e3103a29a2e35ce310b
parentd09c9b459638242b9df53cc82a8849699d572486 (diff)
downloadsamba-1868bfd40f7bf4caf9a31116111fa3a5169f4735.tar.gz
samba-1868bfd40f7bf4caf9a31116111fa3a5169f4735.tar.xz
samba-1868bfd40f7bf4caf9a31116111fa3a5169f4735.zip
libreplace: fix detection of netinet/ip.h on solaris 8
(The test needs to additionally include <netinet/in_systm.h>.) Michael
-rw-r--r--source/lib/replace/libreplace.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/source/lib/replace/libreplace.m4 b/source/lib/replace/libreplace.m4
index d41a86450d4..bad541ab0e4 100644
--- a/source/lib/replace/libreplace.m4
+++ b/source/lib/replace/libreplace.m4
@@ -97,10 +97,14 @@ AC_CHECK_HEADERS(sys/syslog.h syslog.h)
AC_CHECK_HEADERS(sys/time.h time.h)
AC_CHECK_HEADERS(stdarg.h vararg.h)
AC_CHECK_HEADERS(sys/socket.h netinet/in.h netdb.h arpa/inet.h)
+AC_CHECK_HEADERS(netinet/in_systm.h)
AC_CHECK_HEADERS([netinet/ip.h], [], [], [#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif
+#ifdef HAVE_NETINET_IN_SYSTM_H
+#include <netinet/in_systm.h>
#endif])
-AC_CHECK_HEADERS(netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
+AC_CHECK_HEADERS(netinet/tcp.h netinet/in_ip.h)
AC_CHECK_HEADERS(sys/sockio.h sys/un.h)
AC_CHECK_HEADERS(stropts.h)