mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-13 21:06:17 +01:00
Merge branch 'enotsock' into 'master'
GIO: Convert ENOTSOCK to G_IO_ERROR_INVALID_ARGUMENT Closes #1728 See merge request GNOME/glib!731
This commit is contained in:
commit
fcbfa0c65f
@ -272,6 +272,12 @@ g_io_error_from_errno (gint err_no)
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef ENOTSOCK
|
||||
case ENOTSOCK:
|
||||
return G_IO_ERROR_INVALID_ARGUMENT;
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
return G_IO_ERROR_FAILED;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user