Skip to content

Commit 1fb97b8

Browse files
committed
fix windows builds for _WIN32_WINNT>=0x0600, broken by commit 30cab59
1 parent 1a32a2a commit 1fb97b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

network_io/unix/sockaddr.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
#include <net/if.h>
3030
#endif
3131

32+
#if defined(HAVE_IF_INDEXTONAME) && defined(_MSC_VER)
33+
#include <Iphlpapi.h>
34+
#pragma comment(lib, "Iphlpapi.lib")
35+
#endif
36+
3237
#define APR_WANT_STRFUNC
3338
#include "apr_want.h"
3439

0 commit comments

Comments
 (0)