aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-09 02:40:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-09 02:40:02 +0000
commit67f7e82eed27ed03ecca066af6ef1e7b59347b3f (patch)
tree2e9ac4a34bf2401e4b5cf99d856f7b47a6010c8e /io.c
parent1ab8dc3da8228a16c3e9f254b22c59f1c7dab44f (diff)
downloadruby-67f7e82eed27ed03ecca066af6ef1e7b59347b3f.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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/io.c b/io.c
index 4951a09432..982e83e5cc 100644
--- a/io.c
+++ b/io.c
@@ -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)