diff --git a/compiler-rt/test/tsan/Linux/syscall.h b/compiler-rt/test/tsan/Linux/syscall.h --- a/compiler-rt/test/tsan/Linux/syscall.h +++ b/compiler-rt/test/tsan/Linux/syscall.h @@ -1,4 +1,6 @@ +#include #include +#include #include #include #include @@ -16,7 +18,7 @@ int mypipe(int pipefd[2]) { __sanitizer_syscall_pre_pipe(pipefd); - int res = syscall(SYS_pipe, pipefd); + int res = syscall(SYS_pipe2, pipefd, 0); __sanitizer_syscall_post_pipe(res, pipefd); return res; }