diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/ext/io.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/mruby/ext/io.h b/include/mruby/ext/io.h index 209108a9d..4a476e0d5 100644 --- a/include/mruby/ext/io.h +++ b/include/mruby/ext/io.h @@ -11,24 +11,24 @@ extern "C" { #include <errno.h> -#include <unistd.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> -#if !defined(_WIN32) || !defined(__MINGW32__) - #include <sys/wait.h> -#else +#if defined(_WIN32) || defined(_WIN64) #include <winsock.h> +#else + #include <unistd.h> + #include <sys/wait.h> #endif #include <stdio.h> #include <string.h> #include <limits.h> struct mrb_io { - int fd; /* file descriptor */ - int fd2; /* file descriptor */ - int pid; /* child's pid (for pipes) */ + int fd; /* file descriptor */ + int fd2; /* file descriptor */ + int pid; /* child's pid (for pipes) */ }; struct mrb_io_type { |
