summaryrefslogtreecommitdiffstats
path: root/source/lib/replace
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-01-27 12:13:55 +0100
committerKarolin Seeger <kseeger@samba.org>2009-02-16 09:56:45 +0100
commit7c10ad4720a862894eda6ec3eb2ccbe151944c85 (patch)
tree6db1fdba748892f987777af7890b860138fe73bd /source/lib/replace
parent69880dac28ac1681bb0c3d84280494de3d788cc6 (diff)
downloadsamba-7c10ad4720a862894eda6ec3eb2ccbe151944c85.tar.gz
samba-7c10ad4720a862894eda6ec3eb2ccbe151944c85.tar.xz
samba-7c10ad4720a862894eda6ec3eb2ccbe151944c85.zip
libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled
under solaris Michael (cherry picked from commit 1b7beaed69823b3c401bc4c0b1c502b671169168)
Diffstat (limited to 'source/lib/replace')
-rw-r--r--source/lib/replace/libreplace_network.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/source/lib/replace/libreplace_network.m4 b/source/lib/replace/libreplace_network.m4
index 4edb55c03a2..5fc62fd6d49 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 <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)
dnl we need to check that net/if.h really can be used, to cope with hpux