libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled
authorMichael Adam <obnox@samba.org>
Tue, 27 Jan 2009 11:37:13 +0000 (12:37 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 27 Jan 2009 11:37:13 +0000 (12:37 +0100)
under solaris

Michael

source/lib/replace/libreplace.m4

index e430a7f151815d1ba2349c976043cf28e32dd1a4..d41a86450d497bf1a2b5958302234fa27c9d8ba7 100644 (file)
@@ -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)