diff --git a/compiler-rt/lib/asan/asan_interceptors.cc b/compiler-rt/lib/asan/asan_interceptors.cc index 972d2dd18425..ee883cc874ba 100644 --- a/compiler-rt/lib/asan/asan_interceptors.cc +++ b/compiler-rt/lib/asan/asan_interceptors.cc @@ -224,6 +224,9 @@ void *WRAP(signal)(int signum, void *handler) { return NULL; } +extern "C" +extern int (sigaction)(int signum, const void *act, void *oldact); + extern "C" int WRAP(sigaction)(int signum, const void *act, void *oldact) { if (!AsanInterceptsSignal(signum)) { diff --git a/compiler-rt/lib/asan/asan_stack.cc b/compiler-rt/lib/asan/asan_stack.cc index 8c6320b24106..c332db050e4c 100644 --- a/compiler-rt/lib/asan/asan_stack.cc +++ b/compiler-rt/lib/asan/asan_stack.cc @@ -18,8 +18,6 @@ #include "asan_thread.h" #include "asan_thread_registry.h" -#include - #if ASAN_USE_SYSINFO == 1 #include "sysinfo/sysinfo.h" #endif