summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network_io/unix/sockaddr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/network_io/unix/sockaddr.c b/network_io/unix/sockaddr.c
index 8e4bde3e3..94b00983b 100644
--- a/network_io/unix/sockaddr.c
+++ b/network_io/unix/sockaddr.c
@@ -29,6 +29,11 @@
#include <net/if.h>
#endif
+#if defined(HAVE_IF_INDEXTONAME) && defined(_MSC_VER)
+#include <Iphlpapi.h>
+#pragma comment(lib, "Iphlpapi.lib")
+#endif
+
#define APR_WANT_STRFUNC
#include "apr_want.h"