aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ares/adig.c2
-rw-r--r--ares/ahost.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/ares/adig.c b/ares/adig.c
index 494386ff4..6bc87cf03 100644
--- a/ares/adig.c
+++ b/ares/adig.c
@@ -18,7 +18,7 @@
#include "setup.h"
#include <sys/types.h>
-#ifdef WIN32
+#if defined(WIN32) && !defined(WATT32)
#include "nameser.h"
#else
#include <sys/time.h>
diff --git a/ares/ahost.c b/ares/ahost.c
index 92eacd76a..55d47a416 100644
--- a/ares/ahost.c
+++ b/ares/ahost.c
@@ -18,8 +18,7 @@
#include "setup.h"
#include <sys/types.h>
-#ifdef WIN32
-#else
+#if !defined(WIN32) || defined(WATT32)
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>