Index: apps/plugin.c
===================================================================
--- apps/plugin.c (revision 24110)
+++ apps/plugin.c (working copy)
@@ -681,7 +681,7 @@
viewportmanager_theme_enable,
viewportmanager_theme_undo,
#endif
-#ifndef SIMULATOR
+#if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__)
&errno
#endif
};
Index: apps/plugin.h
===================================================================
--- apps/plugin.h (revision 24110)
+++ apps/plugin.h (working copy)
@@ -860,7 +860,7 @@
struct viewport *viewport);
void (*viewportmanager_theme_undo)(enum screen_type screen, bool force_redraw);
#endif
-#ifndef SIMULATOR
+#if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__)
int* __errno;
#endif
};