diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-09 02:40:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-09 02:40:02 +0000 |
commit | 2f49e05e1254b3d4f840f4f0566a850cabca6d19 (patch) | |
tree | 2e9ac4a34bf2401e4b5cf99d856f7b47a6010c8e /io.c | |
parent | eb49204c28617f3d534a567e5418e5daadb12dca (diff) | |
download | ruby-2f49e05e1254b3d4f840f4f0566a850cabca6d19.tar.gz |
io.c: sys/wait.h
* io.c: BSDs need sys/wait.h for WNOHANG.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -96,6 +96,10 @@ #include <sys/uio.h> #endif +#ifdef HAVE_SYS_WAIT_H +# include <sys/wait.h> /* for WNOHANG on BSD */ +#endif + #if defined(__BEOS__) || defined(__HAIKU__) # ifndef NOFILE # define NOFILE (OPEN_MAX) |