summaryrefslogtreecommitdiff
path: root/source/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-01-27 15:48:20 +0100
committerKarolin Seeger <kseeger@samba.org>2009-02-16 09:56:46 +0100
commit346b5b6cd32d9605287e4a27ffc9f716dac97327 (patch)
treeb750c26ceff86a5103301ea4ff2ad9883592c0df /source/lib
parent7c10ad4720a862894eda6ec3eb2ccbe151944c85 (diff)
downloadsamba-346b5b6cd32d9605287e4a27ffc9f716dac97327.tar.gz
libreplace: fix detection of netinet/ip.h on solaris 8
(The test needs to additionally include <netinet/in_systm.h>.) Michael (cherry picked from commit a223b096700bc54b446a0e152c842b088566720b)
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/replace/libreplace_network.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/source/lib/replace/libreplace_network.m4 b/source/lib/replace/libreplace_network.m4
index 5fc62fd6d49..5d1645993eb 100644
--- a/source/lib/replace/libreplace_network.m4
+++ b/source/lib/replace/libreplace_network.m4
@@ -7,10 +7,14 @@ LIBREPLACE_NETWORK_OBJS=""
LIBREPLACE_NETWORK_LIBS=""
AC_CHECK_HEADERS(sys/socket.h netinet/in.h netdb.h arpa/inet.h)
+AC_CHECK_HEADERS(netinet/in_systm.h)
AC_CHECK_HEADERS([netinet/ip.h], [], [], [#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif
+#ifdef HAVE_NETINET_IN_SYSTM_H
+#include <netinet/in_systm.h>
#endif])
-AC_CHECK_HEADERS(netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
+AC_CHECK_HEADERS(netinet/tcp.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