From: Alexander Barton Date: Tue, 8 Jun 2010 13:23:04 +0000 (+0200) Subject: Include correct header files when testing for arpa/inet.h (Closes: #105) X-Git-Tag: rel-17-rc1~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2930f3f5e7356d24f4b5e1616cb7674bd0123ec;p=ngircd Include correct header files when testing for arpa/inet.h (Closes: #105) Tested on OpenBSD 4.7, OpenBSD 4.1, FreeBSD 8, Linux and Mac OS X. Thanks to rck for reporting and testing! --- diff --git a/configure.in b/configure.in index 6d9312d4..57883edc 100644 --- a/configure.in +++ b/configure.in @@ -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 - #ifdef HAVE_NETINET_IN_SYSTM_H - #include + #ifdef HAVE_SYS_TYPES_H + #include + #endif + #ifdef HAVE_SYS_SOCKET_H + #include + #endif + #ifdef HAVE_NETINET_IN_H + #include #endif ]] )