aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/hostip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 575f4ac98..e0bfe5b17 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -49,6 +49,9 @@
#ifdef HAVE_STDLIB_H
#include <stdlib.h> /* required for free() prototypes */
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h> /* for the close() proto */
+#endif
#ifdef VMS
#include <in.h>
#include <inet.h>