tsan: fix syscall test on aarch64
authorDmitry Vyukov <dvyukov@google.com>
Wed, 12 May 2021 06:54:34 +0000 (08:54 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 12 May 2021 07:00:51 +0000 (09:00 +0200)
commit1dc838717a294ed7bfd7d597d427886ce61df122
treeee397c4bc92be604db7716351795b63bbdfca1b7
parent382c505d9cfca8adaec47aea2da7bbcbc00fc05c
tsan: fix syscall test on aarch64

Add missing includes and use SYS_pipe2 instead of SYS_pipe
as it's not present on some arches.

Differential Revision: https://reviews.llvm.org/D102311
compiler-rt/test/tsan/Linux/syscall.h