projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pipe2: silence compiler warning
[gnulib.git]
/
lib
/
pipe2.c
diff --git
a/lib/pipe2.c
b/lib/pipe2.c
index
12cac6e
..
5420788
100644
(file)
--- a/
lib/pipe2.c
+++ b/
lib/pipe2.c
@@
-151,6
+151,8
@@
pipe2 (int fd[2], int flags)
#endif
+#if GNULIB_defined_O_NONBLOCK || \
+ !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
fail:
{
int saved_errno = errno;
@@
-161,4
+163,5
@@
pipe2 (int fd[2], int flags)
errno = saved_errno;
return -1;
}
+#endif
}