diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc index 4a41c1e22d39..6d730da73b8f 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc @@ -25,7 +25,7 @@ #include "sanitizer_atomic.h" #include "sanitizer_symbolizer.h" -#if SANITIZER_ANDROID +#if SANITIZER_ANDROID || SANITIZER_FREEBSD #include // for dlsym() #endif