X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Funistd%2Fpipe.c;h=d07b8d24ae3b1f55126700e64994ab55d453fb16;hb=03919b26ed41c31876db41f7cee076ced4513fad;hp=2dfc9c995f0666aa18358496f6eed2fb16a07b88;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/unistd/pipe.c b/src/unistd/pipe.c index 2dfc9c99..d07b8d24 100644 --- a/src/unistd/pipe.c +++ b/src/unistd/pipe.c @@ -3,5 +3,9 @@ int pipe(int fd[2]) { - return syscall1(__NR_pipe, (long)fd); +#ifdef SYS_pipe + return syscall(SYS_pipe, fd); +#else + return syscall(SYS_pipe2, fd, 0); +#endif }