From ea1b86478662dce1c3f1ce417180efd5d998c883 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sun, 7 May 2017 19:02:34 +0200 Subject: [PATCH] asyn-thread: fix unused macro warnings Don't do anything in this file if CURLRES_THREADED is not defined. --- lib/asyn-thread.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c index 26a15b110..2138c78b8 100644 --- a/lib/asyn-thread.c +++ b/lib/asyn-thread.c @@ -22,6 +22,11 @@ #include "curl_setup.h" +/*********************************************************************** + * Only for threaded name resolves builds + **********************************************************************/ +#ifdef CURLRES_THREADED + #ifdef HAVE_NETINET_IN_H #include #endif @@ -74,11 +79,6 @@ #include "curl_memory.h" #include "memdebug.h" -/*********************************************************************** - * Only for threaded name resolves builds - **********************************************************************/ -#ifdef CURLRES_THREADED - /* * Curl_resolver_global_init() * Called from curl_global_init() to initialize global resolver environment.