Check the availability of ares_set_servers and ares_addr_node.

This commit is contained in:
Tatsuhiro Tsujikawa 2011-02-18 01:04:11 +09:00
parent 8386013296
commit d3d1293974
9 changed files with 47 additions and 12 deletions

View file

@ -84,7 +84,11 @@ bool DHTEntryPointNameResolveCommand::execute()
} else {
family = AF_INET;
}
resolver_.reset(new AsyncNameResolver(family, e_->getAsyncDNSServers()));
resolver_.reset(new AsyncNameResolver(family
#ifdef HAVE_ARES_ADDR_NODE
, e_->getAsyncDNSServers()
#endif // HAVE_ARES_ADDR_NODE
));
}
#endif // ENABLE_ASYNC_DNS
try {