From 74534203b5b91445cd8ae4cd7f2a0d35ea73a281 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 27 Jan 2009 12:13:55 +0100 Subject: [PATCH] libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled under solaris Michael (cherry picked from commit 1b7beaed69823b3c401bc4c0b1c502b671169168) Signed-off-by: Michael Adam --- source/lib/replace/libreplace_network.m4 | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/source/lib/replace/libreplace_network.m4 b/source/lib/replace/libreplace_network.m4 index 4edb55c..5fc62fd 100644 --- a/source/lib/replace/libreplace_network.m4 +++ b/source/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 -- 1.5.6