From cdab2a412790c50feea754f5cfc4fe8b503e4b32 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 27 Jan 2009 12:11:49 +0100 Subject: [PATCH] libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled under solaris Michael --- lib/replace/libreplace_network.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/replace/libreplace_network.m4 b/lib/replace/libreplace_network.m4 index 4edb55c03a29..8d8379a566ac 100644 --- a/lib/replace/libreplace_network.m4 +++ b/lib/replace/libreplace_network.m4 @@ -7,7 +7,10 @@ LIBREPLACE_NETWORK_OBJS="" LIBREPLACE_NETWORK_LIBS="" 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 +#endif]) +AC_CHECK_HEADERS(netinet/tcp.h netinet/in_systm.h netinet/in_ip.h) AC_CHECK_HEADERS(sys/sockio.h sys/un.h) dnl we need to check that net/if.h really can be used, to cope with hpux -- 2.34.1