1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2004-01-28 14:27:24 +00:00 committed by cras
parent dae4b7e2dd
commit b538b3bfe8

View File

@ -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