cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [bagder/curl] 78c25c: lib: Only define curl_dofreeaddrinfo if struct add...

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 27 Nov 2015 23:12:55 +0100 (CET)

On Fri, 27 Nov 2015, GitHub wrote:

> Author: Dan Fandrich <dan_at_coneharvesters.com>

> lib: Only define curl_dofreeaddrinfo if struct addrinfo is available

Dan, what's the exact reason for this?

The HAVE_GETADDRINFO is defined for when the libc function is detected and
meant to be used. This commit makes c-ares build warnings/errors and I can fix
that by removing the #undef HAVE_GETADDRINFO from the c-ares condition in
lib/curl_setup.h but before I just go ahead and do that I wanted to understand
your change better.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-11-27