diff options
author | Haris Okanovic <haris.okanovic@ni.com> | 2014-08-14 14:35:12 -0500 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-08-21 00:22:33 +0200 |
commit | da23624b57d2d03549c05610f5e9f4372032bfdc (patch) | |
tree | dd8b706deb014329e031ec651e22b4ce0683feb4 | |
parent | 30f2d0c0b321cb17c38a2b21a50016e7901b55b2 (diff) |
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
-rw-r--r-- | lib/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c index 826ec251d..6a79e64de 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -94,7 +94,7 @@ static bool verifyconnect(curl_socket_t sockfd, int *error); #define KEEPALIVE_FACTOR(x) #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) struct tcp_keepalive { |