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 <windows.h>
+#endif
+]]
)
AC_CHECK_HEADERS( \
net/if_arp.h \
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 <windows.h>
+#endif
#if HAVE_WINSOCK2_H
#include <winsock2.h>
#endif])