summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index cbbc2f8289..7979e2ae08 100644
--- a/io.c
+++ b/io.c
@@ -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;