[前][次][番号順一覧][スレッド一覧]

ruby-changes:39728

From: nobu <ko1@a...>
Date: Wed, 9 Sep 2015 11:40:17 +0900 (JST)
Subject: [ruby-changes:39728] nobu:r51809 (trunk): io.c: sys/wait.h

nobu	2015-09-09 11:40:02 +0900 (Wed, 09 Sep 2015)

  New Revision: 51809

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51809

  Log:
    io.c: sys/wait.h
    
    * io.c: BSDs need sys/wait.h for WNOHANG.

  Modified files:
    trunk/io.c
Index: io.c
===================================================================
--- io.c	(revision 51808)
+++ io.c	(revision 51809)
@@ -96,6 +96,10 @@ https://github.com/ruby/ruby/blob/trunk/io.c#L96
 #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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]