summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-12-14 01:19:44 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-12-14 01:19:44 +0900
commit5b304c156c8d59871ba7ba0506160613048c5829 (patch)
tree0abf33c718db5200e8d423e3fda12866203ee586
parent7ac39333b5bc1eadd5fd42048aaf448e8a3cc054 (diff)
downloadmruby-5b304c156c8d59871ba7ba0506160613048c5829.tar.gz
mruby-5b304c156c8d59871ba7ba0506160613048c5829.zip
On Windows, `_S_IREAD` and `_S_IWRITE` is defined in `sys/stat.h`.
-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 36f734382..71239a827 100644
--- a/mrbgems/mruby-io/test/mruby_io_test.c
+++ b/mrbgems/mruby-io/test/mruby_io_test.c
@@ -19,6 +19,8 @@ typedef int mode_t;
#define close _close
#ifdef _MSC_VER
+#include <sys/stat.h>
+
static int
mkstemp(char *p)
{