aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"