From: Daniel Stenberg Date: Wed, 21 Apr 2004 11:18:42 +0000 (+0000) Subject: include unistd.h as well for the close() proto on some platforms (like Tru64) X-Git-Tag: curl-7_11_2~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62b7c08bb365d7430093ffbae5e2f036aecfca2e;p=curl include unistd.h as well for the close() proto on some platforms (like Tru64) --- 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 /* required for free() prototypes */ #endif +#ifdef HAVE_UNISTD_H +#include /* for the close() proto */ +#endif #ifdef VMS #include #include