diff options
author | Michael Adam <obnox@samba.org> | 2009-01-27 12:11:49 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-01-27 12:38:01 +0100 |
commit | cdab2a412790c50feea754f5cfc4fe8b503e4b32 (patch) | |
tree | 44dc476d989558a167f8b6da4cfa4a5540b3f00e /lib | |
parent | 692b63e93a19b1226669ff51a77484dbc50926d0 (diff) | |
download | samba-cdab2a412790c50feea754f5cfc4fe8b503e4b32.tar.gz samba-cdab2a412790c50feea754f5cfc4fe8b503e4b32.tar.bz2 samba-cdab2a412790c50feea754f5cfc4fe8b503e4b32.zip |
libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled
under solaris
Michael
Diffstat (limited to 'lib')
-rw-r--r-- | lib/replace/libreplace_network.m4 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/replace/libreplace_network.m4 b/lib/replace/libreplace_network.m4 index 4edb55c03a..8d8379a566 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 <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 |