commit e2930f3f5e7356d24f4b5e1616cb7674bd0123ec from: Alexander Barton date: Wed Jun 09 10:03:08 2010 UTC 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! commit - 059e70724945264c2ab4f25edd48a50d173697f6 commit + e2930f3f5e7356d24f4b5e1616cb7674bd0123ec blob - 6d9312d4d7cac169b174f13863271b3812135e57 blob + 57883edcc091134843acf40820829d12bc00ee11 --- configure.in +++ configure.in @@ -108,10 +108,15 @@ 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 ]] )