From 1fb97b8bd0b02fe71945b03986f3c69fb4270b6b Mon Sep 17 00:00:00 2001 From: "James E. King III" Date: Tue, 9 Jan 2018 15:21:07 -0500 Subject: [PATCH] fix windows builds for _WIN32_WINNT>=0x0600, broken by commit 30cab59 --- network_io/unix/sockaddr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/network_io/unix/sockaddr.c b/network_io/unix/sockaddr.c index 8e4bde3e3b4..94b00983b41 100644 --- a/network_io/unix/sockaddr.c +++ b/network_io/unix/sockaddr.c @@ -29,6 +29,11 @@ #include #endif +#if defined(HAVE_IF_INDEXTONAME) && defined(_MSC_VER) +#include +#pragma comment(lib, "Iphlpapi.lib") +#endif + #define APR_WANT_STRFUNC #include "apr_want.h"