Fix a build issue when compiling without cares

This commit is contained in:
Florent Le Coz
2015-10-26 20:01:57 +01:00
parent e43ca29e94
commit 0fcba76c79
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -23,7 +23,9 @@ void Resolver::resolve(const std::string& hostname, const std::string& port,
{
this->error_cb = error_cb;
this->success_cb = success_cb;
#ifdef CARES_FOUND
this->port = port;
#endif
this->start_resolving(hostname, port);
}