summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-io/src
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <[email protected]>2017-12-12 18:38:02 +0900
committerYasuhiro Matsumoto <[email protected]>2017-12-12 22:39:19 +0900
commit06ec17de6052f5c7b64c1fcc07d9f631c3616596 (patch)
tree7fa83ca5f201a922ddbfd9d11a4e802c7d599bb0 /mrbgems/mruby-io/src
parentd549603a8a7022baf889fb2b1d762f18c9898127 (diff)
downloadmruby-06ec17de6052f5c7b64c1fcc07d9f631c3616596.tar.gz
mruby-06ec17de6052f5c7b64c1fcc07d9f631c3616596.zip
add definition for pid_t on MSVC
Diffstat (limited to 'mrbgems/mruby-io/src')
-rw-r--r--mrbgems/mruby-io/src/io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mrbgems/mruby-io/src/io.c b/mrbgems/mruby-io/src/io.c
index 0eb007504..c5f7a8f5a 100644
--- a/mrbgems/mruby-io/src/io.c
+++ b/mrbgems/mruby-io/src/io.c
@@ -35,6 +35,10 @@
#include <unistd.h>
#endif
+#ifdef _MSC_VER
+typedef int pid_t;
+#endif
+
#include <fcntl.h>
#include <errno.h>