aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_gethostbyname.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2004-08-20 14:10:44 +0000
committerGisle Vanem <gvanem@broadpark.no>2004-08-20 14:10:44 +0000
commite35c7dcd72bdcf5b3d491fc61308c346d8a9d489 (patch)
tree66e77d8e2be285f577084b400b1646960b02aae4 /ares/ares_gethostbyname.c
parentfa83a0573eb1b201969a66fb846c558b4855a07a (diff)
More patches for Watt-32 on Win32; don't include "nameser.h".
Diffstat (limited to 'ares/ares_gethostbyname.c')
-rw-r--r--ares/ares_gethostbyname.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ares/ares_gethostbyname.c b/ares/ares_gethostbyname.c
index 7f6041ed9..b39d53be6 100644
--- a/ares/ares_gethostbyname.c
+++ b/ares/ares_gethostbyname.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>
@@ -30,9 +30,14 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
+
#include "ares.h"
#include "ares_private.h"
+#ifdef WATT32
+#undef WIN32
+#endif
+
struct host_query {
/* Arguments passed to ares_gethostbyname() */
ares_channel channel;