cURL / Mailing Lists / curl-library / Single Mail


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

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

On Fri, 27 Nov 2015, GitHub wrote:

> Author: Dan Fandrich <>

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

List admin:
Received on 2015-11-27