From ea94175e683bb13330e66965d49e3147486155af Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 9 Sep 2013 03:29:28 -0600 Subject: [PATCH] Windows: updated test for ws2tcpip.h and windows.h --- configure.ac | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1746b1fb98..afad9e08a3 100644 --- a/configure.ac +++ b/configure.ac @@ -1157,8 +1157,14 @@ if test "x${enable_eui:=yes}" = "xyes" ; then esac #Iphlpapi.h check delayed after winsock2.h AC_CHECK_HEADERS( \ + windows.h \ sys/sockio.h \ - sys/param.h + sys/param.h, + [], [], [[ +#if HAVE_WINDOWS_H +include +#endif +]] ) AC_CHECK_HEADERS( \ net/if_arp.h \ @@ -2652,7 +2658,13 @@ AC_SEARCH_LIBS([yp_match], [nsl nss_nis nss_nisplus]) dnl Check for Winsock only on MinGW, on Cygwin we must use emulated BSD socket API if test "x$squid_host_os" = "xmingw" ; then SQUID_CHECK_WINSOCK_LIB - AC_CHECK_HEADERS(Iphlpapi.h,,,[ + AC_CHECK_HEADERS( \ + windows.h \ + ws2tcpip.h \ + Iphlpapi.h ,,,[ +#if HAVE_WINDOWS_H +#include +#endif #if HAVE_WINSOCK2_H #include #endif]) -- 2.47.2