From b966288bdf12dbd83b8c7ff4c1d33fbf5e917ab1 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 13 Jul 2014 01:49:42 -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 42fd0f4397..ec1d0089d4 100644 --- a/configure.ac +++ b/configure.ac @@ -1134,7 +1134,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 \ @@ -2514,7 +2514,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 45a61ce46e..5160b4d180 100644 --- a/src/eui/Eui48.cc +++ b/src/eui/Eui48.cc @@ -57,8 +57,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.3