summaryrefslogtreecommitdiff
path: root/lib/hostsyn.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/hostsyn.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/hostsyn.c')
-rw-r--r--lib/hostsyn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/hostsyn.c b/lib/hostsyn.c
index 1a95263c6..3de6746f5 100644
--- a/lib/hostsyn.c
+++ b/lib/hostsyn.c
@@ -22,6 +22,11 @@
#include "curl_setup.h"
+/***********************************************************************
+ * Only for builds using synchronous name resolves
+ **********************************************************************/
+#ifdef CURLRES_SYNCH
+
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
@@ -51,11 +56,6 @@
/* The last #include file should be: */
#include "memdebug.h"
-/***********************************************************************
- * Only for builds using synchronous name resolves
- **********************************************************************/
-#ifdef CURLRES_SYNCH
-
/*
* Function provided by the resolver backend to set DNS servers to use.
*/