aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/io.c b/io.c
index 56fc3f3f7c..ab3f35f3cf 100644
--- a/io.c
+++ b/io.c
@@ -253,14 +253,8 @@ rb_cloexec_pipe(int fildes[2])
static int try_pipe2 = 1;
if (try_pipe2) {
ret = pipe2(fildes, O_CLOEXEC);
-#ifdef __NetBSD__
- /* pipe2 is available since NetBSD 6.0. */
- if (ret > 0)
- return 0;
-#else
if (ret != -1)
return ret;
-#endif
/* pipe2 is available since Linux 2.6.27, glibc 2.9. */
if (errno == ENOSYS) {
try_pipe2 = 0;