diff options
author | Yang Tse <yangsita@gmail.com> | 2006-10-18 21:05:40 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-10-18 21:05:40 +0000 |
commit | 77ac18117cf23d5ec8add1565691a7b980326934 (patch) | |
tree | 33c5486da1ddf826bb3753b55302b60b6c2e91b8 /adig.c | |
parent | 70ed671edf618a0508d2f06ddb80e5813aca5e68 (diff) | |
download | c-ares-77ac18117cf23d5ec8add1565691a7b980326934.tar.gz c-ares-77ac18117cf23d5ec8add1565691a7b980326934.tar.bz2 c-ares-77ac18117cf23d5ec8add1565691a7b980326934.zip |
Check for USE_WINSOCK instead of WIN32 where the check was done
to verify winsock API availability.
Diffstat (limited to 'adig.c')
-rw-r--r-- | adig.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -153,8 +153,8 @@ int main(int argc, char **argv) fd_set read_fds, write_fds; struct timeval *tvp, tv; -#ifdef WIN32 - WORD wVersionRequested = MAKEWORD(1,1); +#ifdef USE_WINSOCK + WORD wVersionRequested = MAKEWORD(USE_WINSOCK,USE_WINSOCK); WSADATA wsaData; WSAStartup(wVersionRequested, &wsaData); #endif |