diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-10-20 20:32:26 +0300 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2018-10-20 20:34:08 +0300 |
commit | 98cef6807eb70e7c459f6f80a06f894fac63100a (patch) | |
tree | e3a13c1d767718cbaf24c47240bd369e9b96c3a7 /src/feature/relay | |
parent | 92f0e04f8d08574be60da7e6ebad90a2883a488a (diff) | |
download | tor-98cef6807eb70e7c459f6f80a06f894fac63100a.tar.gz tor-98cef6807eb70e7c459f6f80a06f894fac63100a.zip |
Exclude test and a supporting function when evdns_base_get_nameserver_addr() is not available
Diffstat (limited to 'src/feature/relay')
-rw-r--r-- | src/feature/relay/dns.c | 2 | ||||
-rw-r--r-- | src/feature/relay/dns.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/feature/relay/dns.c b/src/feature/relay/dns.c index 1b4914b49a..dfd84652ad 100644 --- a/src/feature/relay/dns.c +++ b/src/feature/relay/dns.c @@ -1366,6 +1366,7 @@ number_of_configured_nameservers(void) return evdns_base_count_nameservers(the_evdns_base); } +#ifdef HAVE_EVDNS_BASE_GET_NAMESERVER_ADDR /** * Return address of configured nameserver in <b>the_evdns_base</b> * at index <b>idx</b>. @@ -1386,6 +1387,7 @@ configured_nameserver_address(const size_t idx) return NULL; } +#endif /** Configure eventdns nameservers if force is true, or if the configuration * has changed since the last time we called this function, or if we failed on diff --git a/src/feature/relay/dns.h b/src/feature/relay/dns.h index 3a17ea7b36..5758ea4363 100644 --- a/src/feature/relay/dns.h +++ b/src/feature/relay/dns.h @@ -46,7 +46,9 @@ size_t dns_cache_handle_oom(time_t now, size_t min_remove_bytes); #include "feature/relay/dns_structs.h" size_t number_of_configured_nameservers(void); +#ifdef HAVE_EVDNS_BASE_GET_NAMESERVER_ADDR tor_addr_t *configured_nameserver_address(const size_t idx); +#endif MOCK_DECL(STATIC int,dns_resolve_impl,(edge_connection_t *exitconn, int is_resolve,or_circuit_t *oncirc, char **hostname_out, |