From: Amos Jeffries Date: Thu, 24 Jul 2014 08:56:18 +0000 (-0700) Subject: Windows: fix iphlpapi.h include case-sensitivity X-Git-Tag: SQUID_3_4_7~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d4d2fee9ad07a061d75d593bba4c37adf20ceb4;p=thirdparty%2Fsquid.git Windows: fix iphlpapi.h include case-sensitivity --- diff --git a/configure.ac b/configure.ac index f0297cefde..67bab6129b 100644 --- a/configure.ac +++ b/configure.ac @@ -1169,7 +1169,7 @@ 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 + # iphlpapi.h check delayed after winsock2.h AC_CHECK_HEADERS( \ windows.h \ sys/sockio.h \ @@ -2538,7 +2538,7 @@ if test "x$squid_host_os" = "xmingw" ; then AC_CHECK_HEADERS( \ windows.h \ ws2tcpip.h \ - Iphlpapi.h ,,,[ + iphlpapi.h ,,,[ #if HAVE_WINDOWS_H #include #endif diff --git a/src/eui/Eui48.cc b/src/eui/Eui48.cc index f97fe2b6b4..5edb70b6af 100644 --- a/src/eui/Eui48.cc +++ b/src/eui/Eui48.cc @@ -59,8 +59,9 @@ struct arpreq { struct sockaddr arp_ha; /* hardware address */ int arp_flags; /* flags */ }; - -#include +#if HAVE_IPHLPAPI_H +#include +#endif #endif #if HAVE_SYS_PARAM_H