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 92bd88f5faef..1046b62819e3 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc @@ -42,12 +42,12 @@ namespace __sanitizer { #if defined(__linux__) unsigned struct_rlimit_sz = sizeof(struct rlimit); unsigned struct_dirent_sz = sizeof(struct dirent); - unsigned struct_dirent64_sz = sizeof(struct dirent64); unsigned struct_statfs_sz = sizeof(struct statfs); unsigned struct_epoll_event_sz = sizeof(struct epoll_event); #endif // __linux__ #if defined(__linux__) && !defined(__ANDROID__) + unsigned struct_dirent64_sz = sizeof(struct dirent64); unsigned struct_rlimit64_sz = sizeof(struct rlimit64); unsigned struct_statfs64_sz = sizeof(struct statfs64); #endif // __linux__ && !__ANDROID__ 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 0807c4a6c6f1..2eac01649efb 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h @@ -25,12 +25,12 @@ namespace __sanitizer { #if defined(__linux__) extern unsigned struct_rlimit_sz; extern unsigned struct_dirent_sz; - extern unsigned struct_dirent64_sz; extern unsigned struct_statfs_sz; extern unsigned struct_epoll_event_sz; #endif // __linux__ #if defined(__linux__) && !defined(__ANDROID__) + extern unsigned struct_dirent64_sz; extern unsigned struct_rlimit64_sz; extern unsigned struct_statfs64_sz; #endif // __linux__ && !__ANDROID__