1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix previous commit (r33586).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-10-31 13:50:32 +00:00
parent ca6311b0b5
commit 6a96646de2

2
io.c
View file

@ -253,7 +253,7 @@ rb_cloexec_pipe(int fildes[2])
static int try_pipe2 = 1;
if (try_pipe2) {
ret = pipe2(fildes, O_CLOEXEC);
#ifdef defined(__NetBSD__)
#ifdef __NetBSD__
/* pipe2 is available since NetBSD 6.0. */
if (ret > 0)
return 0;