summaryrefslogtreecommitdiff
path: root/lib/hostcheck.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2014-03-26 22:27:34 +0100
committerDan Fandrich <dan@coneharvesters.com>2014-03-26 22:29:00 +0100
commita8c7cf62811d688efeff49f8f9ab942b525ebfd4 (patch)
treed6212203b122ddcd1b1ef7c2f90ca7b806fa240d /lib/hostcheck.c
parent7cb763cf576e9d6ab93fcc1fbfb02c95766a1334 (diff)
downloadcurl-a8c7cf62811d688efeff49f8f9ab942b525ebfd4.tar.gz
hostcheck: added a system include to define struct in_addr
Diffstat (limited to 'lib/hostcheck.c')
-rw-r--r--lib/hostcheck.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/hostcheck.c b/lib/hostcheck.c
index 162c52230..42eb2ee77 100644
--- a/lib/hostcheck.c
+++ b/lib/hostcheck.c
@@ -26,6 +26,10 @@
defined(USE_GSKIT)
/* these backends use functions from this file */
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
#include "hostcheck.h"
#include "rawstr.h"
#include "inet_pton.h"