Index: compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp =================================================================== --- compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp +++ compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp @@ -485,6 +485,7 @@ #else #define REG_SP rsp #endif +#if defined(PTRACE_GETREGSET) #define ARCH_IOVEC_FOR_GETREGSET // Support ptrace extensions even when compiled without required kernel support #ifndef NT_X86_XSTATE @@ -492,6 +493,7 @@ #endif // Compiler may use FP registers to store pointers. static constexpr uptr kExtraRegs[] = {NT_X86_XSTATE, NT_FPREGSET}; +#endif #elif defined(__powerpc__) || defined(__powerpc64__) typedef pt_regs regs_struct;