diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h @@ -14,7 +14,7 @@ #ifndef SANITIZER_PLATFORM_LIMITS_POSIX_H #define SANITIZER_PLATFORM_LIMITS_POSIX_H -#if SANITIZER_LINUX || SANITIZER_APPLE +#if SANITIZER_LINUX || SANITIZER_APPLE || SANITIZER_FUCHSIA #include "sanitizer_internal_defs.h" #include "sanitizer_platform.h" @@ -210,7 +210,7 @@ }; #endif -#if SANITIZER_LINUX && !SANITIZER_ANDROID +#if (SANITIZER_LINUX && !SANITIZER_ANDROID) || SANITIZER_FUCHSIA struct __sanitizer_struct_mallinfo { int v[10]; }; @@ -661,7 +661,7 @@ #else #if defined(__s390x__) int sa_resv; -#else +#elif !SANITIZER_FUCHSIA __sanitizer_sigset_t sa_mask; #endif #ifndef __mips__