summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorZenju <zenju@gmx.de>2019-05-22 11:11:36 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-05-23 11:10:28 +0200
commit170bd047f5f73ffa914ff21205018966f31e09c0 (patch)
tree0ea864b43a1710be61cad97d8ea844b4b5cec45b /lib/url.c
parentc2a8d52a1356a722ff9f4aeb983cd4eaf80ef221 (diff)
downloadcurl-170bd047f5f73ffa914ff21205018966f31e09c0.tar.gz
config-win32: add support for if_nametoindex and getsockname
Closes https://github.com/curl/curl/pull/3923
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index db76fa656..b5169485f 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -34,10 +34,12 @@
#ifdef HAVE_NET_IF_H
#include <net/if.h>
#endif
+#ifdef HAVE_IPHLPAPI_H
+#include <Iphlpapi.h>
+#endif
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
-
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif