cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

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

"codemastr" <codemstr_at_ptd.net> 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.

--gv

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
Received on 2003-10-09