mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
Support Watt-32 under Win32.
This commit is contained in:
parent
0033535e21
commit
65b0f6049d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user