summaryrefslogtreecommitdiff
path: root/lib/hostip6.c
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2017-10-26 20:52:22 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2017-10-27 13:20:13 +0200
commit733190413f6aeffdedf48b85bf43bcfd1038d54b (patch)
tree604c35442cac13ad4e28ca3c602f5722bf77ed6a /lib/hostip6.c
parent36bbbeb7c21c2deb7f157786434a00c36fcf9aa6 (diff)
downloadcurl-733190413f6aeffdedf48b85bf43bcfd1038d54b.tar.gz
resolvers: only include anything if needed
This avoids warnings about unused stuff. Closes https://github.com/curl/curl/pull/2023
Diffstat (limited to 'lib/hostip6.c')
-rw-r--r--lib/hostip6.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/hostip6.c b/lib/hostip6.c
index edeebec9e..7c9988f41 100644
--- a/lib/hostip6.c
+++ b/lib/hostip6.c
@@ -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