From: Gisle Vanem Date: Tue, 6 Feb 2007 18:56:34 +0000 (+0000) Subject: Include and inside HAVE_x_H. X-Git-Tag: curl-7_16_2~354 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fa9ef246ad15fe83ee45d936c2f43dbc86b67e8;p=thirdparty%2Fcurl.git Include and inside HAVE_x_H. Added 'optind' and 'optarg' as in adig.c. --- diff --git a/ares/ahost.c b/ares/ahost.c index 55d47a416f..8f6b671afc 100644 --- a/ares/ahost.c +++ b/ares/ahost.c @@ -19,13 +19,17 @@ #include #if !defined(WIN32) || defined(WATT32) +#ifdef HAVE_SYS_TIME_H #include +#endif #include #include #include #include +#ifdef HAVE_UNISTD_H #include #endif +#endif #include #include @@ -40,6 +44,11 @@ #include "inet_ntop.h" #include "inet_net_pton.h" +#ifndef optind +extern int optind; +extern char *optarg; +#endif + #ifndef INADDR_NONE #define INADDR_NONE 0xffffffff #endif