From 5b304c156c8d59871ba7ba0506160613048c5829 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 14 Dec 2017 01:19:44 +0900 Subject: On Windows, `_S_IREAD` and `_S_IWRITE` is defined in `sys/stat.h`. --- mrbgems/mruby-io/test/mruby_io_test.c | 2 ++ 1 file changed, 2 insertions(+) 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 + static int mkstemp(char *p) { -- cgit v1.2.3