summaryrefslogtreecommitdiff
path: root/acountry.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2008-08-16 16:42:44 +0000
committerGisle Vanem <gvanem@broadpark.no>2008-08-16 16:42:44 +0000
commit3c3c49e048b1abca49597526c9ba10405364ab5c (patch)
tree18d63a2b5375056f441ab6777cd38c099a3041f2 /acountry.c
parentd23952ffdf836ee7162deba4a9ac402a84f67f47 (diff)
downloadc-ares-3c3c49e048b1abca49597526c9ba10405364ab5c.tar.gz
c-ares-3c3c49e048b1abca49597526c9ba10405364ab5c.tar.bz2
c-ares-3c3c49e048b1abca49597526c9ba10405364ab5c.zip
Support Watt-32 under Win32.
Diffstat (limited to 'acountry.c')
-rw-r--r--acountry.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/acountry.c b/acountry.c
index 14efa07..542c016 100644
--- a/acountry.c
+++ b/acountry.c
@@ -47,7 +47,7 @@
#include <strings.h>
#endif
-#if defined(WIN32)
+#if defined(WIN32) && !defined(WATT32)
#include <winsock.h>
#else
#include <arpa/inet.h>
@@ -90,7 +90,7 @@ int main(int argc, char **argv)
ares_channel channel;
int ch, status;
-#ifdef WIN32
+#if defined(WIN32) && !defined(WATT32)
WORD wVersionRequested = MAKEWORD(USE_WINSOCK,USE_WINSOCK);
WSADATA wsaData;
WSAStartup(wVersionRequested, &wsaData);
@@ -107,6 +107,8 @@ int main(int argc, char **argv)
case 'v':
verbose++;
break;
+ case 't':
+ use_vc = 1;
case 'h':
case '?':
default:
@@ -158,7 +160,7 @@ int main(int argc, char **argv)
wait_ares(channel);
ares_destroy(channel);
-#ifdef WIN32
+#if defined(WIN32) && !defined(WATT32)
WSACleanup();
#endif