mirror of
https://github.com/curl/curl.git
synced 2026-08-12 21:20:57 +03:00
win32: drop support for WinSock version 1, require version 2
IPv6, telnet and now also the multi API require WinSock version 2 which is available starting with Windows 95. Therefore we think it is time to drop support for version 1. Reviewed-by: Marcel Raad Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg Reviewed-by: Viktor Szakats Follow up to #5634 Closes #5854
This commit is contained in:
parent
20d74b7393
commit
3e4b32a3e1
5 changed files with 11 additions and 22 deletions
|
|
@ -167,8 +167,8 @@ void win32_init(void)
|
|||
WORD wVersionRequested;
|
||||
WSADATA wsaData;
|
||||
int err;
|
||||
wVersionRequested = MAKEWORD(USE_WINSOCK, USE_WINSOCK);
|
||||
|
||||
wVersionRequested = MAKEWORD(2, 2);
|
||||
err = WSAStartup(wVersionRequested, &wsaData);
|
||||
|
||||
if(err != 0) {
|
||||
|
|
@ -177,8 +177,8 @@ void win32_init(void)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
if(LOBYTE(wsaData.wVersion) != USE_WINSOCK ||
|
||||
HIBYTE(wsaData.wVersion) != USE_WINSOCK) {
|
||||
if(LOBYTE(wsaData.wVersion) != LOBYTE(wVersionRequested) ||
|
||||
HIBYTE(wsaData.wVersion) != HIBYTE(wVersionRequested) ) {
|
||||
WSACleanup();
|
||||
perror("Winsock init failed");
|
||||
logmsg("No suitable winsock.dll found -- aborting");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue