cURL / Mailing Lists / curl-library / Single Mail


Re: Win32 inet_pton fixes (Was: Re: curl-7.10.8-pre3)

From: Gisle Vanem <>
Date: Thu, 9 Oct 2003 04:05:14 +0200

"codemastr" <> said:

> Couple of errors here on Win32 with MSVC.NET.
> The inet_pton4/6 uses u_char, MSVC doesn't have a u_char defined.

MSVC have "u_char" etc. i <winsock*.h>.

> Also, winsock.h must be included in inet_pton if MSVC is in use.

See, problem solved. Besides <winsock.h> cannot be used if ENABLE_IPV6
is used. Must use <winsock2.h> and <ws2tcpip.h>. I suggest we put
these messy ifdefs in setup.h.


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-09