mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
Merge branch 'backport-4111-eaddrnotavail-macos-glib-2-80' into 'glib-2-80'
Backport !4111 “gioerror: Map EADDRNOTAVAIL to G_IO_ERROR_CONNECTION_REFUSED” to glib-2-80 See merge request GNOME/glib!4112
This commit is contained in:
commit
e1d1c78fc8
@ -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…
x
Reference in New Issue
Block a user