summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-12-08 14:34:10 +0900
committerGitHub <[email protected]>2017-12-08 14:34:10 +0900
commite17092debda8eecb652916b8ba2a314e799dd96f (patch)
treea7b422ffdbc99f600a6aa836309545ff157f9335 /mrbgems
parentc47a1984b4151446638775018fd6cbf4b758104b (diff)
parent7f3bda56537e0a069955563ef00743e8968a6809 (diff)
downloadmruby-e17092debda8eecb652916b8ba2a314e799dd96f.tar.gz
mruby-e17092debda8eecb652916b8ba2a314e799dd96f.zip
Merge pull request #3874 from mimaki/fix-mingw-compile-error
Fixed compile error of `mruby-io` gem on MinGW.
Diffstat (limited to 'mrbgems')
-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)