aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pipe2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pipe2.c')
-rw-r--r--lib/pipe2.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/pipe2.c b/lib/pipe2.c
index 807ba6a9f9d..c16d9351ec8 100644
--- a/lib/pipe2.c
+++ b/lib/pipe2.c
@@ -29,7 +29,7 @@
29# include "nonblocking.h" 29# include "nonblocking.h"
30#endif 30#endif
31 31
32#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 32#if defined _WIN32 && ! defined __CYGWIN__
33/* Native Windows API. */ 33/* Native Windows API. */
34 34
35# include <io.h> 35# include <io.h>
@@ -73,7 +73,7 @@ pipe2 (int fd[2], int flags)
73 return -1; 73 return -1;
74 } 74 }
75 75
76#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 76#if defined _WIN32 && ! defined __CYGWIN__
77/* Native Windows API. */ 77/* Native Windows API. */
78 78
79 if (_pipe (fd, 4096, flags & ~O_NONBLOCK) < 0) 79 if (_pipe (fd, 4096, flags & ~O_NONBLOCK) < 0)
@@ -152,8 +152,7 @@ pipe2 (int fd[2], int flags)
152 152
153#endif 153#endif
154 154
155#if GNULIB_defined_O_NONBLOCK || \ 155#if GNULIB_defined_O_NONBLOCK || !(defined _WIN32 && ! defined __CYGWIN__)
156 !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
157 fail: 156 fail:
158 { 157 {
159 int saved_errno = errno; 158 int saved_errno = errno;