]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
More patches for Watt-32 on Win32; don't include "nameser.h".
authorGisle Vanem <gvanem@broadpark.no>
Fri, 20 Aug 2004 14:10:44 +0000 (14:10 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Fri, 20 Aug 2004 14:10:44 +0000 (14:10 +0000)
ares/ares_gethostbyaddr.c
ares/ares_gethostbyname.c
ares/ares_mkquery.c
ares/ares_parse_a_reply.c
ares/ares_parse_ptr_reply.c

index 460b556d9d2bbda01785e2d5875cc6802a7dab08..f44b3fb38ec01f6510d230550e8ef582a1e65dde 100644 (file)
@@ -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>
 #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;
index 7f6041ed92864c0e7aeb26466937af96cf3fb772..b39d53be66a83e00d0a8ca359bc4bfe2d444a3d5 100644 (file)
@@ -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>
 #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;
index 500e9bb7127b6d7535006e76a8f3d776834825a0..d2ae66be95cc001128950595aa8f968523ecd00a 100644 (file)
@@ -16,7 +16,7 @@
 #include "setup.h"
 #include <sys/types.h>
 
-#ifdef WIN32
+#if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
 #else
 #include <netinet/in.h>
index 045e833200e69a53594af326263313cf0dbdfd02..3e55d87568ce4e446d6199a3efd785596674b943 100644 (file)
@@ -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>
index 0cd375f49d0993e891e1222644bcb87b462acc71..888b029cf228c3f9bb9bd8d2079bed294445b10e 100644 (file)
@@ -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>