[w32error] Add ENXIO -> ERROR_DEV_NOT_EXIST error translation
authorBernhard Urban <bernhard.urban@xamarin.com>
Fri, 15 Sep 2017 16:19:27 +0000 (09:19 -0700)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Mon, 18 Sep 2017 19:01:05 +0000 (21:01 +0200)
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=58738

mono/metadata/w32error-unix.c

index d25681126a4be13107c66a64fc52b24bb9dadcca..67fde9c8c1dcb764b6a36ee73c4a5a967c55ed73 100644 (file)
@@ -69,6 +69,9 @@ mono_w32error_unix_to_win32 (guint32 error)
 #ifdef ENODEV
        case ENODEV: return ERROR_DEV_NOT_EXIST;
 #endif
+#ifdef ENXIO
+       case ENXIO: return ERROR_DEV_NOT_EXIST;
+#endif
 
        default:
                g_error ("%s: unknown error (%d) \"%s\"", __FILE__, error, g_strerror (error));