resolvers: only include anything if needed

This avoids warnings about unused stuff.

Closes https://github.com/curl/curl/pull/2023
This commit is contained in:
Marcel Raad 2017-10-26 20:52:22 +02:00
parent 36bbbeb7c2
commit 733190413f
No known key found for this signature in database
GPG key ID: 33C416EFAE4D6F02
5 changed files with 28 additions and 27 deletions

View file

@ -22,6 +22,11 @@
#include "curl_setup.h"
/***********************************************************************
* Only for IPv6-enabled builds
**********************************************************************/
#ifdef CURLRES_IPV6
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
@ -54,11 +59,6 @@
#include "curl_memory.h"
#include "memdebug.h"
/***********************************************************************
* Only for IPv6-enabled builds
**********************************************************************/
#ifdef CURLRES_IPV6
#if defined(CURLDEBUG) && defined(HAVE_GETNAMEINFO)
/* These are strictly for memory tracing and are using the same style as the
* family otherwise present in memdebug.c. I put these ones here since they