1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

win32: Fixed WinSock 2 #if

A conditionally compiled block in connect.c references WinSock 2
symbols, but used `#ifdef HAVE_WINSOCK_H` instead of `#ifdef
HAVE_WINSOCK2_H`.

Bug: http://curl.haxx.se/mail/lib-2014-08/0155.html
This commit is contained in:
Haris Okanovic 2014-08-14 14:35:12 -05:00 committed by Daniel Stenberg
parent 30f2d0c0b3
commit da23624b57

View File

@ -94,7 +94,7 @@ static bool verifyconnect(curl_socket_t sockfd, int *error);
#define KEEPALIVE_FACTOR(x) #define KEEPALIVE_FACTOR(x)
#endif #endif
#if defined(HAVE_WINSOCK_H) && !defined(SIO_KEEPALIVE_VALS) #if defined(HAVE_WINSOCK2_H) && !defined(SIO_KEEPALIVE_VALS)
#define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4) #define SIO_KEEPALIVE_VALS _WSAIOW(IOC_VENDOR,4)
struct tcp_keepalive { struct tcp_keepalive {