asyn-thread: fix unused macro warnings

Don't do anything in this file if CURLRES_THREADED is not defined.
This commit is contained in:
Marcel Raad 2017-05-07 19:02:34 +02:00
parent 3661c8aeb0
commit ea1b864786
No known key found for this signature in database
GPG Key ID: B4668817AE6D6CD4
1 changed files with 5 additions and 5 deletions

View File

@ -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.