diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2017-10-26 20:52:22 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2017-10-27 13:20:13 +0200 |
commit | 733190413f6aeffdedf48b85bf43bcfd1038d54b (patch) | |
tree | 604c35442cac13ad4e28ca3c602f5722bf77ed6a /lib/hostasyn.c | |
parent | 36bbbeb7c21c2deb7f157786434a00c36fcf9aa6 (diff) | |
download | curl-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/hostasyn.c')
-rw-r--r-- | lib/hostasyn.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/hostasyn.c b/lib/hostasyn.c index 28bdf7a48..7b6e8568a 100644 --- a/lib/hostasyn.c +++ b/lib/hostasyn.c @@ -22,6 +22,11 @@ #include "curl_setup.h" +/*********************************************************************** + * Only for builds using asynchronous name resolves + **********************************************************************/ +#ifdef CURLRES_ASYNCH + #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 asynchronous name resolves - **********************************************************************/ -#ifdef CURLRES_ASYNCH - /* * Curl_addrinfo_callback() gets called by ares, gethostbyname_thread() * or getaddrinfo_thread() when we got the name resolved (or not!). |