diff options
| author | Paolo Bosetti <[email protected]> | 2013-12-02 12:14:04 +0100 |
|---|---|---|
| committer | Paolo Bosetti <[email protected]> | 2013-12-02 12:14:04 +0100 |
| commit | 5a59fd3a5c83395847448db333c9df9d253a158c (patch) | |
| tree | 8707720a41627c78e4fa0360bc16852b226b47b6 /include | |
| parent | 87d878292d16bddad811a5cfd897ba27884bec8c (diff) | |
| download | mruby-5a59fd3a5c83395847448db333c9df9d253a158c.tar.gz mruby-5a59fd3a5c83395847448db333c9df9d253a158c.zip | |
Fix for compilation under Win/MinGW
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/ext/io.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/mruby/ext/io.h b/include/mruby/ext/io.h index a104d6d1f..209108a9d 100644 --- a/include/mruby/ext/io.h +++ b/include/mruby/ext/io.h @@ -16,7 +16,11 @@ extern "C" { #include <sys/types.h> #include <sys/stat.h> -#include <sys/wait.h> +#if !defined(_WIN32) || !defined(__MINGW32__) + #include <sys/wait.h> +#else + #include <winsock.h> +#endif #include <stdio.h> #include <string.h> #include <limits.h> |
