From 0ce97f77e02acd2de15970270834a7011ce6cb38 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 30 Oct 2008 13:45:25 +0000 Subject: Use our Curl_addrinfo definition even when an addrinfo struct is available. Use a wrapper function to call system's getaddrinfo(). --- tests/libtest/lib558.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'tests/libtest/lib558.c') diff --git a/tests/libtest/lib558.c b/tests/libtest/lib558.c index f1095d45e..00c0a490a 100644 --- a/tests/libtest/lib558.c +++ b/tests/libtest/lib558.c @@ -10,11 +10,17 @@ #include "test.h" +#ifdef HAVE_SYS_SOCKET_H +# include +#endif +#ifdef HAVE_NETINET_IN_H +# include +#endif #ifdef HAVE_NETDB_H -#include +# include #endif #ifdef HAVE_ARPA_INET_H -#include +# include #endif #define ENABLE_CURLX_PRINTF @@ -64,13 +70,6 @@ static Curl_addrinfo *fake_ai(void) ai->ai_family = AF_INET; ai->ai_addrlen = ss_size; -#if defined(ENABLE_IPV6) && defined(CURLDEBUG) - /* For tracing purposes log a fake call to getaddrinfo */ - if(logfile) - fprintf(logfile, "ADDR %s:%d getaddrinfo() = %p\n", - __FILE__, __LINE__, (void *)ai); -#endif - return ai; } #endif /* LIB559 */ -- cgit v1.2.3