diff options
author | Timo Sirainen <cras@irssi.org> | 2004-01-28 14:27:24 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-01-28 14:27:24 +0000 |
commit | b538b3bfe8660c64250065fb9a2208f85b299e19 (patch) | |
tree | 34dad625e15799e42c6b2309bdd8b3655563b375 /src | |
parent | dae4b7e2dd5948cd3957aedf98f2b72f460f6b11 (diff) | |
download | irssi-b538b3bfe8660c64250065fb9a2208f85b299e19.zip |
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
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 } |