From 0a675778f04b4af0034d3b0c400fdc43629e62d2 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Wed, 18 May 2011 03:03:37 +0200 Subject: [PATCH] Portability fix: properly detect Iphlpapi.h on windows --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 23c0bab15f..c13296a1c9 100644 --- a/configure.ac +++ b/configure.ac @@ -1042,8 +1042,8 @@ if test "x${enable_eui:=yes}" = "xyes" ; then AC_MSG_WARN([EUI support probably will not work on host $host.]) ;; esac + #Iphlpapi.h check delayed after winsock2.h AC_CHECK_HEADERS( \ - Iphlpapi.h \ net/if_dl.h \ sys/sockio.h \ sys/param.h @@ -2508,6 +2508,10 @@ 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,,,[ +#if HAVE_WINSOCK2_H +#include +#endif]) fi # check that we have unix sockets -- 2.47.2