summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mrbgems/mruby-io/test/mruby_io_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-io/test/mruby_io_test.c b/mrbgems/mruby-io/test/mruby_io_test.c
index 2c9efbe85..1b14b38d4 100644
--- a/mrbgems/mruby-io/test/mruby_io_test.c
+++ b/mrbgems/mruby-io/test/mruby_io_test.c
@@ -11,7 +11,9 @@
#include <stdlib.h>
#include <malloc.h>
+#if (!defined __MINGW64__) && (!defined __MINGW32__)
typedef int mode_t;
+#endif
static int
mkstemp(char *p)