aboutsummaryrefslogtreecommitdiff
path: root/lib/asyn-ares.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/asyn-ares.c
parent36bbbeb7c21c2deb7f157786434a00c36fcf9aa6 (diff)
resolvers: only include anything if needed
This avoids warnings about unused stuff. Closes https://github.com/curl/curl/pull/2023
Diffstat (limited to 'lib/asyn-ares.c')
-rw-r--r--lib/asyn-ares.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c
index 27523041e..dd7dc4028 100644
--- a/lib/asyn-ares.c
+++ b/lib/asyn-ares.c
@@ -22,6 +22,14 @@
#include "curl_setup.h"
+/***********************************************************************
+ * Only for ares-enabled builds
+ * And only for functions that fulfill the asynch resolver backend API
+ * as defined in asyn.h, nothing else belongs in this file!
+ **********************************************************************/
+
+#ifdef CURLRES_ARES
+
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
@@ -48,14 +56,6 @@
#define in_addr_t unsigned long
#endif
-/***********************************************************************
- * Only for ares-enabled builds
- * And only for functions that fulfill the asynch resolver backend API
- * as defined in asyn.h, nothing else belongs in this file!
- **********************************************************************/
-
-#ifdef CURLRES_ARES
-
#include "urldata.h"
#include "sendf.h"
#include "hostip.h"