FreeBSD modifications

This commit is contained in:
Aleksandar Fabijanic
2012-09-26 02:51:43 +00:00
parent e7ee78baa5
commit 991fb4a31f
9 changed files with 51 additions and 26 deletions

View File

@@ -250,8 +250,10 @@ void DNS::aierror(int code, const std::string& arg)
case EAI_FAIL:
throw DNSException("Non recoverable DNS error while resolving", arg);
#if !defined(_WIN32) // EAI_NODATA and EAI_NONAME have the same value
#if defined(EAI_NODATA) // deprecated in favor of EAI_NONAME on FreeBSD
case EAI_NODATA:
throw NoAddressFoundException(arg);
#endif
#endif
case EAI_NONAME:
throw HostNotFoundException(arg);