mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
Merge pull request #467 from dequis/EAI_SYSTEM
net_gethosterror: Handle EAI_SYSTEM ("System error") properly
This commit is contained in:
parent
8cbf5f28f2
commit
2c5856d832
1 changed files with 5 additions and 1 deletions
|
|
@ -585,7 +585,11 @@ const char *net_gethosterror(int error)
|
|||
#ifdef HAVE_IPV6
|
||||
g_return_val_if_fail(error != 0, NULL);
|
||||
|
||||
return gai_strerror(error);
|
||||
if (error == EAI_SYSTEM) {
|
||||
return strerror(errno);
|
||||
} else {
|
||||
return gai_strerror(error);
|
||||
}
|
||||
#else
|
||||
switch (error) {
|
||||
case HOST_NOT_FOUND:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue