curl-library
Re: lwIP not using getaddrinfo()
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 22 Sep 2011 23:11:20 +0200 (CEST)
Date: Thu, 22 Sep 2011 23:11:20 +0200 (CEST)
On Thu, 22 Sep 2011, Gisle Vanem wrote:
> But I cannot make sense of the messy #ifdef-ing to select the "correct"
> resolver. We have been told for like 10 years that gethostbyname() has been
> deprecated. At least on Windows. So someone help me fix this.
It currently depends on ENABLE_IPV6, which in lib/setup.h (line 495) will
define CURLRES_IPV6 then.
Does lwIP support IPv6? Otherwise I guess you can leave ENABLE_IPV6 undefined
and just explicity define CURLRES_IPV6 and undefine CURLRES_IPV4,
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-09-22