externalsocket: use WinSock 2.2

That's the only version we support.

Closes https://github.com/curl/curl/pull/7778
This commit is contained in:
Marcel Raad 2021-09-18 01:26:27 +02:00
parent c2ea04f92b
commit 7a0c160473
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02

View File

@ -97,7 +97,7 @@ int main(void)
#ifdef WIN32
WSADATA wsaData;
int initwsa = WSAStartup(MAKEWORD(2, 0), &wsaData);
int initwsa = WSAStartup(MAKEWORD(2, 2), &wsaData);
if(initwsa) {
printf("WSAStartup failed: %d\n", initwsa);
return 1;