We recently updated cURL from 7.26 to 7.37.1 on a Windows-like machine 
using WinSock 1, and had to make a minor change to build: A conditionally 
compiled block in connect.c references _WSAIOW and WSAIoctl() to set TCP 
keep-alive on a socket, but these are WinSock 2 symbols and the file uses 
WinSock 1 HAVE_* macros. Is the intent here to use an alternate 
implementation when WinSock 2 is not present? It's my understanding that 
these symbols are only provided by WinSock 2, so I'm not sure how that 
would work.

The enclosed patch fixed this issue for us by using HAVE_WINSOCK2_H 
instead of HAVE_WINSOCK_H. Please consider our patch for the cURL trunk, 
if you think it's good solution.

We are providing the enclosed patch under the curl license from 
http://curl.haxx.se/docs/copyright.html.

Thanks,
Haris Okanovic
National Instruments R&D


Attachment: 0001-Fixed-WinSock-2-if.patch
Description: Binary data

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to