From d7bb7a57e93f52c1dcccd106caa968e1c5ddc803 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Wed, 2 Jan 2019 19:05:26 +0000 Subject: [sanitizer] Android does not provide --- compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc | 5 ++--- compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'compiler-rt') 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 1e7e22b87c4..bc6675bf43e 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc @@ -25,7 +25,6 @@ #endif #include #include -#include #include #include #include @@ -56,6 +55,7 @@ #endif #if !SANITIZER_ANDROID +#include #include #include #include @@ -193,14 +193,13 @@ namespace __sanitizer { unsigned struct_sched_param_sz = sizeof(struct sched_param); unsigned struct_regex_sz = sizeof(regex_t); unsigned struct_regmatch_sz = sizeof(regmatch_t); - unsigned struct_fstab_sz = sizeof(struct fstab); - #if SANITIZER_MAC && !SANITIZER_IOS unsigned struct_statfs64_sz = sizeof(struct statfs64); #endif // SANITIZER_MAC && !SANITIZER_IOS #if !SANITIZER_ANDROID + unsigned struct_fstab_sz = sizeof(struct fstab); unsigned struct_statfs_sz = sizeof(struct statfs); unsigned struct_sockaddr_sz = sizeof(struct sockaddr); unsigned ucontext_t_sz = sizeof(ucontext_t); diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h index 7bb24cad8f4..de69852d35a 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h @@ -51,9 +51,9 @@ namespace __sanitizer { extern unsigned struct_statfs64_sz; extern unsigned struct_regex_sz; extern unsigned struct_regmatch_sz; - extern unsigned struct_fstab_sz; #if !SANITIZER_ANDROID + extern unsigned struct_fstab_sz; extern unsigned struct_statfs_sz; extern unsigned struct_sockaddr_sz; extern unsigned ucontext_t_sz; -- cgit v1.2.3