use namespace-safe __lseek for __stdio_seek instead of direct syscall
[musl] / src / unistd / pipe.c
index 2dfc9c9..d07b8d2 100644 (file)
@@ -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
 }