1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

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

View File

@ -22,6 +22,11 @@
#include "curl_setup.h" #include "curl_setup.h"
/***********************************************************************
* Only for threaded name resolves builds
**********************************************************************/
#ifdef CURLRES_THREADED
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
#include <netinet/in.h> #include <netinet/in.h>
#endif #endif
@ -74,11 +79,6 @@
#include "curl_memory.h" #include "curl_memory.h"
#include "memdebug.h" #include "memdebug.h"
/***********************************************************************
* Only for threaded name resolves builds
**********************************************************************/
#ifdef CURLRES_THREADED
/* /*
* Curl_resolver_global_init() * Curl_resolver_global_init()
* Called from curl_global_init() to initialize global resolver environment. * Called from curl_global_init() to initialize global resolver environment.