summaryrefslogtreecommitdiff
path: root/ext/io/wait
diff options
context:
space:
mode:
authorngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-23 07:51:10 +0000
committerngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-23 07:51:10 +0000
commitd332891fddbcf9d319369968b5898b294742343b (patch)
treecbfc4d8dfa851398e7a7cc0db5cbce848886b986 /ext/io/wait
parent965dba4faaeadb4e3fa8bfbf3e7895cb6246dc49 (diff)
* ext/io/wait/wait.c: ioctl(2) is declared in unistd.h on Solaris.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io/wait')
-rw-r--r--ext/io/wait/wait.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/io/wait/wait.c b/ext/io/wait/wait.c
index 34e832b122e..eb7ed03cea9 100644
--- a/ext/io/wait/wait.c
+++ b/ext/io/wait/wait.c
@@ -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