From: Michael Adam Date: Tue, 27 Jan 2009 11:11:49 +0000 (+0100) Subject: libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled X-Git-Tag: samba-4.0.0alpha7~417^2~335 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cdab2a412790c50feea754f5cfc4fe8b503e4b32;p=thirdparty%2Fsamba.git libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled under solaris Michael --- diff --git a/lib/replace/libreplace_network.m4 b/lib/replace/libreplace_network.m4 index 4edb55c03a2..8d8379a566a 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