aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_gethostbyaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares/ares_gethostbyaddr.c')
-rw-r--r--ares/ares_gethostbyaddr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ares/ares_gethostbyaddr.c b/ares/ares_gethostbyaddr.c
index 460b556d9..f44b3fb38 100644
--- a/ares/ares_gethostbyaddr.c
+++ b/ares/ares_gethostbyaddr.c
@@ -16,7 +16,7 @@
#include "setup.h"
#include <sys/types.h>
-#ifdef WIN32
+#if defined(WIN32) && !defined(WATT32)
#include "nameser.h"
#else
#include <sys/socket.h>
@@ -28,9 +28,14 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
#include "ares.h"
#include "ares_private.h"
+#ifdef WATT32
+#undef WIN32
+#endif
+
struct addr_query {
/* Arguments passed to ares_gethostbyaddr() */
ares_channel channel;