aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2007-02-06 18:54:35 +0000
committerGisle Vanem <gvanem@broadpark.no>2007-02-06 18:54:35 +0000
commite12220cc4cdc0fe807b23fecbcfa20f8fc14001d (patch)
tree153b6a7f0da74990ce6e13c10b230daf064226b6 /ares
parent77fcad041fcf6b078fb70e75eda68bfb20683c3a (diff)
Include <sys/time.h> and <unistd.h> inside HAVE_x_H.
Diffstat (limited to 'ares')
-rw-r--r--ares/adig.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ares/adig.c b/ares/adig.c
index 6bc87cf03..059b03492 100644
--- a/ares/adig.c
+++ b/ares/adig.c
@@ -21,12 +21,16 @@
#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