From 440b97d231b9a15f4b22d1b65259ce1c5de1266e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=B9=E6=93=8D?= Date: Tue, 12 Sep 2023 04:11:41 +0000 Subject: [PATCH] [Compiler-rt][Sanitizer][OHOS] Include mqueue.h under OHOS. OHOS_SDK has now updated the mqueue.h file and the undefined symbol error has been fixed. So remove the modifications made at that time to avoid error. --- .../sanitizer_common/sanitizer_platform_limits_posix.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 f2e324a96c74..839d31a8b75c 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 -- Gitee