mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:53:32 +03:00
resolvers: only include anything if needed
This avoids warnings about unused stuff. Closes https://github.com/curl/curl/pull/2023
This commit is contained in:
parent
36bbbeb7c2
commit
733190413f
5 changed files with 28 additions and 27 deletions
|
|
@ -22,6 +22,11 @@
|
|||
|
||||
#include "curl_setup.h"
|
||||
|
||||
/***********************************************************************
|
||||
* Only for builds using synchronous name resolves
|
||||
**********************************************************************/
|
||||
#ifdef CURLRES_SYNCH
|
||||
|
||||
#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 synchronous name resolves
|
||||
**********************************************************************/
|
||||
#ifdef CURLRES_SYNCH
|
||||
|
||||
/*
|
||||
* Function provided by the resolver backend to set DNS servers to use.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue