summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-10-31 17:51:54 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-10-31 17:51:54 +0000
commit48d6915d8b8488be641e52c290f680b9655312b1 (patch)
treeb20f6a13fa8bde9711106b7c371466acf23e6a3b
parent8e881e02f55aee96d0714166ee08982d4642b2f1 (diff)
downloadc-ares-48d6915d8b8488be641e52c290f680b9655312b1.tar.gz
c-ares-48d6915d8b8488be641e52c290f680b9655312b1.tar.bz2
c-ares-48d6915d8b8488be641e52c290f680b9655312b1.zip
Don't include "nameser.h" for Watt32. Use the normal BSD-socket headers.
-rw-r--r--adig.c2
-rw-r--r--ahost.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/adig.c b/adig.c
index 494386f..6bc87cf 100644
--- a/adig.c
+++ b/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/ahost.c b/ahost.c
index 92eacd7..55d47a4 100644
--- a/ahost.c
+++ b/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>