diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc index 212828ac3741..bcf2c0a50c19 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc @@ -42,7 +42,6 @@ #include #include #include -#include #if SANITIZER_LINUX #include @@ -64,6 +63,7 @@ #if !SANITIZER_ANDROID #include +#include #endif #if SANITIZER_LINUX && !SANITIZER_ANDROID @@ -875,9 +875,11 @@ CHECK_TYPE_SIZE(__kernel_loff_t); CHECK_TYPE_SIZE(__kernel_fd_set); #endif +#if !SANITIZER_ANDROID CHECK_TYPE_SIZE(wordexp_t); CHECK_SIZE_AND_OFFSET(wordexp_t, we_wordc); CHECK_SIZE_AND_OFFSET(wordexp_t, we_wordv); CHECK_SIZE_AND_OFFSET(wordexp_t, we_offs); +#endif #endif // SANITIZER_LINUX || SANITIZER_MAC