From b538b3bfe8660c64250065fb9a2208f85b299e19 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 28 Jan 2004 14:27:24 +0000 Subject: [PATCH] EAI_NODATA is depricated and doesn't exist everywhere anymore git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3224 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/network.c | 4 ++++ 1 file changed, 4 insertions(+) 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,7 +607,11 @@ 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