gnu /
gcc /
80f7f229883f28d11da18c75c9a97f89ce00a1ab [sanitizer_common] Fix build on ppc64+musl (#120036)
Cherry picked from LLVM commit 801b519dfd01e21da0be17aa8f8dc2ceb0eb9e77.
In powerpc64-unknown-linux-musl, signal.h does not include asm/ptrace.h,
which causes "member access into incomplete type 'struct pt_regs'"
errors. Include the header explicitly to fix this.
Also in sanitizer_linux_libcdep.cpp, there is a usage of TlsPreTcbSize
which is not defined in such a platform. Guard the branch with macro.
(cherry picked from commit 5111ea055f5699ad47605890fb45af5c3db1de4f)
4 files changed