diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/network.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/network.c b/src/core/network.c index d8192d04..1baf72c6 100644 --- a/src/core/network.c +++ b/src/core/network.c @@ -607,8 +607,12 @@ const char *net_gethosterror(int error) int net_hosterror_notfound(int error) { #ifdef HAVE_IPV6 +#ifdef EAI_NODATA /* NODATA is depricated */ return error != 1 && (error == EAI_NONAME || error == EAI_NODATA); #else + return error != 1 && (error == EAI_NONAME); +#endif +#else return error == HOST_NOT_FOUND || error == NO_ADDRESS; #endif } |