cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] Fixed WinSock 2 #if

From: Haris Okanovic <haris.okanovic_at_ni.com>
Date: Wed, 20 Aug 2014 15:39:57 -0500

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

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

Received on 2014-08-20