diff options
author | nikita <nikita@NetBSD.org> | 2021-01-13 00:53:52 +0100 |
---|---|---|
committer | nikita <nikita@NetBSD.org> | 2021-01-13 00:53:52 +0100 |
commit | 5b9f8acdda96cbaf7ec070db3ae9bdbe2a42f8eb (patch) | |
tree | d69e840805484efba1885154b855bf93409248cb /lib/system_win32.c | |
parent | 7bd28f37397837d72302550e43d95060413e9eb8 (diff) | |
parent | e052859759b34d0e05ce0f17244873e5cd7b457b (diff) | |
download | gnurl-5b9f8acdda96cbaf7ec070db3ae9bdbe2a42f8eb.tar.gz gnurl-5b9f8acdda96cbaf7ec070db3ae9bdbe2a42f8eb.tar.bz2 gnurl-5b9f8acdda96cbaf7ec070db3ae9bdbe2a42f8eb.zip |
Merge tag 'curl-7_74_0'
7.74.0
Diffstat (limited to 'lib/system_win32.c')
-rw-r--r-- | lib/system_win32.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/system_win32.c b/lib/system_win32.c index 55a6ebfeb..3d6c9d4a1 100644 --- a/lib/system_win32.c +++ b/lib/system_win32.c @@ -9,7 +9,7 @@ * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms - * are also available at https://curl.haxx.se/docs/copyright.html. + * are also available at https://curl.se/docs/copyright.html. * * You may opt to use, copy, modify, merge, publish, distribute and/or sell * copies of the Software, and permit persons to whom the Software is @@ -55,12 +55,7 @@ CURLcode Curl_win32_init(long flags) WSADATA wsaData; int res; -#if defined(ENABLE_IPV6) && (USE_WINSOCK < 2) -#error IPV6_requires_winsock2 -#endif - - wVersionRequested = MAKEWORD(USE_WINSOCK, USE_WINSOCK); - + wVersionRequested = MAKEWORD(2, 2); res = WSAStartup(wVersionRequested, &wsaData); if(res != 0) @@ -83,9 +78,9 @@ CURLcode Curl_win32_init(long flags) return CURLE_FAILED_INIT; } /* The Windows Sockets DLL is acceptable. Proceed. */ - #elif defined(USE_LWIPSOCK) +#elif defined(USE_LWIPSOCK) lwip_init(); - #endif +#endif } /* CURL_GLOBAL_WIN32 */ #ifdef USE_WINDOWS_SSPI |