diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-05-07 19:02:34 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-05-07 19:02:34 +0200 |
commit | ea1b86478662dce1c3f1ce417180efd5d998c883 (patch) | |
tree | 451e16baefb0f94ea094e532918162e1b47e354e | |
parent | 3661c8aeb0c6b6f5cb935d5b00d5663df4c66821 (diff) |
asyn-thread: fix unused macro warnings
Don't do anything in this file if CURLRES_THREADED is not defined.
-rw-r--r-- | lib/asyn-thread.c | 10 |
1 files 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 <netinet/in.h> #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. |