From 67f7e82eed27ed03ecca066af6ef1e7b59347b3f Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 9 Sep 2015 02:40:02 +0000 Subject: [PATCH] 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 --- io.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/io.c b/io.c index 4951a09432..982e83e5cc 100644 --- a/io.c +++ b/io.c @@ -96,6 +96,10 @@ #include #endif +#ifdef HAVE_SYS_WAIT_H +# include /* for WNOHANG on BSD */ +#endif + #if defined(__BEOS__) || defined(__HAIKU__) # ifndef NOFILE # define NOFILE (OPEN_MAX)