]> granicus.if.org Git - curl/commitdiff
Include <sys/time.h> and <unistd.h> inside HAVE_x_H.
authorGisle Vanem <gvanem@broadpark.no>
Tue, 6 Feb 2007 18:54:35 +0000 (18:54 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Tue, 6 Feb 2007 18:54:35 +0000 (18:54 +0000)
ares/adig.c

index 6bc87cf03ad6e1aeea2637f0c7d9704e061e47d3..059b03492b73aaa2ec6469154085f2d2b8071322 100644 (file)
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
 #else
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
+#endif
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <arpa/nameser.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 #include <netdb.h>
 #endif
 #ifdef HAVE_GETOPT_H