diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc index c8adb8e8d813..2dbabe93b32c 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc @@ -24,7 +24,9 @@ #include "sanitizer_procmaps.h" #include "sanitizer_stacktrace.h" +#ifdef __x86_64__ #include +#endif #include #include #include @@ -64,7 +66,9 @@ const int FUTEX_WAKE = 1; # define SANITIZER_LINUX_USES_64BIT_SYSCALLS 0 #endif +#ifdef __x86_64__ extern "C" int arch_prctl(int code, __sanitizer::uptr *addr); +#endif namespace __sanitizer {