From 2d4d2fee9ad07a061d75d593bba4c37adf20ceb4 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Thu, 24 Jul 2014 01:56:18 -0700 Subject: [PATCH] Windows: fix iphlpapi.h include case-sensitivity --- configure.ac | 4 ++-- src/eui/Eui48.cc | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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 -- 2.47.2