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

ruby-changes:21463

From: ngoto <ko1@a...>
Date: Sun, 23 Oct 2011 16:52:25 +0900 (JST)
Subject: [ruby-changes:21463] ngoto:r33512 (trunk): * ext/io/wait/wait.c: ioctl(2) is declared in unistd.h on Solaris.

ngoto	2011-10-23 16:51:10 +0900 (Sun, 23 Oct 2011)

  New Revision: 33512

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

  Log:
    * ext/io/wait/wait.c: ioctl(2) is declared in unistd.h on Solaris.

  Modified files:
    trunk/ChangeLog
    trunk/ext/io/wait/wait.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33511)
+++ ChangeLog	(revision 33512)
@@ -1,3 +1,7 @@
+Sun Oct 23 16:43:43 2011  Naohisa Goto  <ngotogenome@g...>
+
+	* ext/io/wait/wait.c: ioctl(2) is declared in unistd.h on Solaris.
+
 Sun Oct 23 16:33:35 2011  Ayumu AIZAWA  <ayumu.aizawa@g...>
 
 	* ext/tk/MANUAL_tcltklib.eng: fix typo. reported by Mimura-san.
Index: ext/io/wait/wait.c
===================================================================
--- ext/io/wait/wait.c	(revision 33511)
+++ ext/io/wait/wait.c	(revision 33512)
@@ -14,6 +14,9 @@
 #include "ruby/io.h"
 
 #include <sys/types.h>
+#if defined(HAVE_UNISTD_H) && (defined(__sun) || defined(__sun__))
+#include <unistd.h>
+#endif
 #if defined(HAVE_SYS_IOCTL_H)
 #include <sys/ioctl.h>
 #endif

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

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