From 62b7c08bb365d7430093ffbae5e2f036aecfca2e Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Wed, 21 Apr 2004 11:18:42 +0000
Subject: [PATCH] include unistd.h as well for the close() proto on some
 platforms (like Tru64)

---
 lib/hostip.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/hostip.c b/lib/hostip.c
index 575f4ac980..e0bfe5b17a 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>
-- 
GitLab