mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-01 11:52:54 +01:00
FreeBSD modifications
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user