diff options
author | Michael Adam <obnox@samba.org> | 2009-01-27 15:46:25 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-01-27 15:48:54 +0100 |
commit | 86ed67f0737aa309014b93860ccc6c79e3cc6ea5 (patch) | |
tree | 41f8fd3e29c7b96ca52d7bacf1dc704d95021e0d /lib | |
parent | f6d8d94510498796e24fe5c52cb5ff3b14fd7f97 (diff) | |
download | samba-86ed67f0737aa309014b93860ccc6c79e3cc6ea5.tar.gz samba-86ed67f0737aa309014b93860ccc6c79e3cc6ea5.tar.bz2 samba-86ed67f0737aa309014b93860ccc6c79e3cc6ea5.zip |
libreplace: fix detection of netinet/ip.h on solaris 8
(The test needs to additionally include <netinet/in_systm.h>.)
Michael
Diffstat (limited to 'lib')
-rw-r--r-- | lib/replace/libreplace_network.m4 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/replace/libreplace_network.m4 b/lib/replace/libreplace_network.m4 index 8d8379a566..30be30f4ab 100644 --- a/lib/replace/libreplace_network.m4 +++ b/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 |