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)
adig.c

diff --git a/adig.c b/adig.c
index 6bc87cf..059b034 100644 (file)
--- a/adig.c
+++ b/adig.c
 #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