cURL / Mailing Lists / curl-library / Single Mail


Win IPv6 patches

From: Gisle Vanem <>
Date: Tue, 14 Oct 2003 02:28:11 +0200

Here's my announced patches to libcurl to get
ENABLE_IPV6 to work for Windows. Tested with
MSCV 6 and MingW/gcc 3.3.1.

Almost all files are changed, but it's a simple change.
Remove <winsock.h> and include <winsock2.h> in setup.h
instead. (telnet.c already needed winsock2.h). Add
<ws2tcpip.h> for IPv6 or OpenSSL. And config-win32.h is
patched; some stuff Win doesn't have and something added.

I'm not happy about the #ifdef of 'socklen_t'. But that type
is in <ws2tcpip.h> which is included for IPv6 only. We should
maybe move types like that to setup.h.

Btw. What's this trying to say?
  #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)

Windows, but not CygWin? If so, isn't this better:
  #if defined(WIN32) && !defined(__CYGWIN__)

Gisle V.

# rm /bin/laden
/bin/laden: Not found

This email is sponsored by: Giveback Program. hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here:

Received on 2003-10-14