]> granicus.if.org Git - curl/commitdiff
include unistd.h as well for the close() proto on some platforms (like Tru64)
authorDaniel Stenberg <daniel@haxx.se>
Wed, 21 Apr 2004 11:18:42 +0000 (11:18 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 21 Apr 2004 11:18:42 +0000 (11:18 +0000)
lib/hostip.c

index 575f4ac980c81059286ed17ecf999a2026141ee2..e0bfe5b17ad0182e027a236677174f40bed7581a 100644 (file)
@@ -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>