diff --git a/compiler-rt/lib/scudo/standalone/platform.h b/compiler-rt/lib/scudo/standalone/platform.h index a897a566f9bf2..a4c2a0b266032 100644 --- a/compiler-rt/lib/scudo/standalone/platform.h +++ b/compiler-rt/lib/scudo/standalone/platform.h @@ -9,13 +9,17 @@ #ifndef SCUDO_PLATFORM_H_ #define SCUDO_PLATFORM_H_ +// Transitive includes of stdint.h specify some of the defines checked below. +#include + #if defined(__linux__) #define SCUDO_LINUX 1 #else #define SCUDO_LINUX 0 #endif -#if defined(__ANDROID__) +// See https://android.googlesource.com/platform/bionic/+/master/docs/defines.md +#if defined(__BIONIC__) #define SCUDO_ANDROID 1 #else #define SCUDO_ANDROID 0