summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-21 11:18:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-21 11:18:42 +0000
commit62b7c08bb365d7430093ffbae5e2f036aecfca2e (patch)
tree91b7eb0de1d080b796c22a459066932271ae8b45
parenta85fa66cc81c7989f39c2412b4bbe3f6b8731c3a (diff)
downloadgnurl-62b7c08bb365d7430093ffbae5e2f036aecfca2e.tar.gz
gnurl-62b7c08bb365d7430093ffbae5e2f036aecfca2e.tar.bz2
gnurl-62b7c08bb365d7430093ffbae5e2f036aecfca2e.zip
include unistd.h as well for the close() proto on some platforms (like Tru64)
-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>