summaryrefslogtreecommitdiffstats
path: root/lib/replace
diff options
context:
space:
mode:
authorTimur <timur@FreeBSD.org>2009-03-17 22:45:28 +0100
committerMichael Adam <obnox@samba.org>2009-03-17 23:09:00 +0100
commite8aa7169a6672bd32af6c5580f6e8ec7e99511bc (patch)
tree668e9ea5c6048dc2c17514bae2741e6e86f9a8c1 /lib/replace
parent8dd1faaa2992851f6852ba7ea4498445af5faadd (diff)
downloadsamba-e8aa7169a6672bd32af6c5580f6e8ec7e99511bc.tar.gz
samba-e8aa7169a6672bd32af6c5580f6e8ec7e99511bc.tar.xz
samba-e8aa7169a6672bd32af6c5580f6e8ec7e99511bc.zip
build: format the header check for netinet/ip.h more nicely
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/libreplace_network.m414
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/replace/libreplace_network.m4 b/lib/replace/libreplace_network.m4
index 9223d94b757..a87320f841e 100644
--- a/lib/replace/libreplace_network.m4
+++ b/lib/replace/libreplace_network.m4
@@ -8,12 +8,14 @@ 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/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_ip.h)
AC_CHECK_HEADERS(sys/sockio.h sys/un.h)
AC_CHECK_HEADERS(sys/uio.h)