aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib558.c17
1 files changed, 8 insertions, 9 deletions
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 <sys/socket.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
#ifdef HAVE_NETDB_H
-#include <netdb.h>
+# include <netdb.h>
#endif
#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
+# include <arpa/inet.h>
#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 */