projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove another invalid skip of locking in ungetwc
[oweals/musl.git]
/
src
/
unistd
/
pipe.c
diff --git
a/src/unistd/pipe.c
b/src/unistd/pipe.c
index 36c6f13e7a1684acb6340f4e59338d99fd9fcf32..d07b8d24ae3b1f55126700e64994ab55d453fb16 100644
(file)
--- a/
src/unistd/pipe.c
+++ b/
src/unistd/pipe.c
@@
-3,5
+3,9
@@
int pipe(int fd[2])
{
+#ifdef SYS_pipe
return syscall(SYS_pipe, fd);
+#else
+ return syscall(SYS_pipe2, fd, 0);
+#endif
}