]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Include correct header files when testing for arpa/inet.h (Closes: #105)
authorAlexander Barton <alex@barton.de>
Tue, 8 Jun 2010 13:23:04 +0000 (15:23 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 9 Jun 2010 10:03:08 +0000 (12:03 +0200)
Tested on OpenBSD 4.7, OpenBSD 4.1, FreeBSD 8, Linux and Mac OS X.
Thanks to rck <dev.rck@gmail.com> for reporting and testing!

configure.in

index 6d9312d4d7cac169b174f13863271b3812135e57..57883edcc091134843acf40820829d12bc00ee11 100644 (file)
@@ -108,9 +108,14 @@ AC_CHECK_HEADERS([ \
 AC_CHECK_HEADERS([ \
        arpa/inet.h ctype.h malloc.h netinet/ip.h stdbool.h stddef.h varargs.h \
        ],[],[],[[
-       #include <netinet/in.h>
-       #ifdef HAVE_NETINET_IN_SYSTM_H
-               #include <netinet/in_systm.h>
+       #ifdef HAVE_SYS_TYPES_H
+               #include <sys/types.h>
+       #endif
+       #ifdef HAVE_SYS_SOCKET_H
+               #include <sys/socket.h>
+       #endif
+       #ifdef HAVE_NETINET_IN_H
+               #include <netinet/in.h>
        #endif
        ]]
 )