build: fix detection of netinet/ip.h on FreeBSD
authorTimur <timur@FreeBSD.org>
Tue, 17 Mar 2009 21:46:53 +0000 (22:46 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 17 Mar 2009 22:09:00 +0000 (23:09 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
lib/replace/libreplace_network.m4

index a87320f841e29952b937ce98bb1f845c20c3a803..3bac72d136a3be4f6c96db7874e746c1794d8997 100644 (file)
@@ -9,6 +9,7 @@ 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], [], [],[
+       #include <sys/types.h>
        #ifdef HAVE_NETINET_IN_H
        #include <netinet/in.h>
        #endif