summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-01-27 12:37:13 +0100
committerKarolin Seeger <kseeger@samba.org>2009-07-30 09:22:10 +0200
commitbf2432428342c6702cf9ed0d38a34d8ff4ed0a36 (patch)
treed38087f5387140077e03ac73b9e148e1d307a121
parenta79fdce48072ae073375ac2b988e6c4f19be2dff (diff)
downloadsamba-bf2432428342c6702cf9ed0d38a34d8ff4ed0a36.tar.gz
libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled
under solaris Michael (cherry picked from commit d09c9b459638242b9df53cc82a8849699d572486)
-rw-r--r--source/lib/replace/libreplace.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/source/lib/replace/libreplace.m4 b/source/lib/replace/libreplace.m4
index e430a7f1518..d41a86450d4 100644
--- a/source/lib/replace/libreplace.m4
+++ b/source/lib/replace/libreplace.m4
@@ -97,7 +97,10 @@ 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/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
+AC_CHECK_HEADERS([netinet/ip.h], [], [], [#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif])
+AC_CHECK_HEADERS(netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
AC_CHECK_HEADERS(sys/sockio.h sys/un.h)
AC_CHECK_HEADERS(stropts.h)