diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp index f2e324a96c74543596e18d8574360298f2ab5575..839d31a8b75ca518fd09124bb8632af7f3eb07f6 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp @@ -145,9 +145,7 @@ typedef struct user_fpregs elf_fpregset_t; #elif SANITIZER_OHOS #include #include -#if !defined(__arm__) -# include -#endif +#include #include #include #include @@ -308,9 +306,7 @@ namespace __sanitizer { #if SANITIZER_LINUX && !SANITIZER_ANDROID unsigned struct_timex_sz = sizeof(struct timex); unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds); -#if (!SANITIZER_OHOS || !defined(__arm__)) unsigned struct_mq_attr_sz = sizeof(struct mq_attr); -#endif unsigned struct_statvfs_sz = sizeof(struct statvfs); #endif // SANITIZER_LINUX && !SANITIZER_ANDROID