]> granicus.if.org Git - curl/commitdiff
win32: Fixed WinSock 2 #if
authorHaris Okanovic <haris.okanovic@ni.com>
Thu, 14 Aug 2014 19:35:12 +0000 (14:35 -0500)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 20 Aug 2014 22:22:33 +0000 (00:22 +0200)
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

lib/connect.c

index 826ec251d997c032142de178b17e6f5b712f9c0b..6a79e64de7b97236145a3f2c403b189e7763725d 100644 (file)
@@ -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 {