support linux kernel apis (new archs) with old syscalls removed
[musl] / src / unistd / pipe.c
index 36c6f13..d07b8d2 100644 (file)
@@ -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
 }