mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -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:
parent
dae4b7e2dd
commit
b538b3bfe8
@ -607,7 +607,11 @@ const char *net_gethosterror(int error)
|
|||||||
int net_hosterror_notfound(int error)
|
int net_hosterror_notfound(int error)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_IPV6
|
#ifdef HAVE_IPV6
|
||||||
|
#ifdef EAI_NODATA /* NODATA is depricated */
|
||||||
return error != 1 && (error == EAI_NONAME || error == EAI_NODATA);
|
return error != 1 && (error == EAI_NONAME || error == EAI_NODATA);
|
||||||
|
#else
|
||||||
|
return error != 1 && (error == EAI_NONAME);
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
return error == HOST_NOT_FOUND || error == NO_ADDRESS;
|
return error == HOST_NOT_FOUND || error == NO_ADDRESS;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user