mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Merge branch 'wip/pwithnall/gsocket-eaddrnotavail-macos' into 'main'
gioerror: Map EADDRNOTAVAIL to G_IO_ERROR_CONNECTION_REFUSED Closes #3394 See merge request GNOME/glib!4111
This commit is contained in:
commit
9e680ff8f4
@ -208,6 +208,12 @@ g_io_error_from_errno (gint err_no)
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef EADDRNOTAVAIL
|
||||
case EADDRNOTAVAIL:
|
||||
return G_IO_ERROR_CONNECTION_REFUSED;
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef ECONNRESET
|
||||
case ECONNRESET:
|
||||
return G_IO_ERROR_CONNECTION_CLOSED;
|
||||
|
@ -572,7 +572,7 @@ test_error_from_errno (void)
|
||||
|
||||
#ifdef EADDRNOTAVAIL
|
||||
g_assert_cmpuint (g_io_error_from_errno (EADDRNOTAVAIL), ==,
|
||||
G_IO_ERROR_FAILED);
|
||||
G_IO_ERROR_CONNECTION_REFUSED);
|
||||
#endif
|
||||
|
||||
#ifdef ENETDOWN
|
||||
|
Loading…
Reference in New Issue
Block a user