cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 9 Oct 2003 10:19:34 +0200 (CEST)

On Wed, 8 Oct 2003, codemastr wrote:

> The inet_pton4/6 uses u_char, MSVC doesn't have a u_char defined. Probably
> the easiest way to fix this, rather than adding a portability typedef type
> of thing, would just be to change inet_pton to use unsigned char.

Right, even if u_char is available as Gisle Vanem suggests I still believe
using a plain 'unsigned char' is better and more likely to work better on more
platforms.

Thanks, your patch is committed.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
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