mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-26 03:47:52 +02:00
gioerror: Add G_IO_ERROR_NO_SUCH_DEVICE to map ENODEV
This commit is contained in:
@@ -115,6 +115,11 @@ g_io_error_from_errno (gint err_no)
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef ENODEV
|
||||
case ENODEV:
|
||||
return G_IO_ERROR_NO_SUCH_DEVICE;
|
||||
#endif
|
||||
|
||||
#ifdef EROFS
|
||||
case EROFS:
|
||||
return G_IO_ERROR_READ_ONLY;
|
||||
|
Reference in New Issue
Block a user