[sanitizer] Fix OSX build some more.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192967 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
index fd24d54..7263f79 100644
--- a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
+++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
@@ -140,6 +140,7 @@
#if !SANITIZER_ANDROID
unsigned ucontext_t_sz = sizeof(ucontext_t);
+ unsigned struct_statfs64_sz = sizeof(struct statfs64);
#endif // !SANITIZER_ANDROID
#if SANITIZER_LINUX
@@ -160,7 +161,6 @@
#if SANITIZER_LINUX && !SANITIZER_ANDROID
unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
- unsigned struct_statfs64_sz = sizeof(struct statfs64);
unsigned struct_timex_sz = sizeof(struct timex);
unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
unsigned struct_shmid_ds_sz = sizeof(struct shmid_ds);
diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/lib/sanitizer_common/sanitizer_platform_limits_posix.h
index bd41b90..e8ee086 100644
--- a/lib/sanitizer_common/sanitizer_platform_limits_posix.h
+++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.h
@@ -42,6 +42,7 @@
#if !SANITIZER_ANDROID
extern unsigned ucontext_t_sz;
+ extern unsigned struct_statfs64_sz;
#endif // !SANITIZER_ANDROID
#if SANITIZER_LINUX
@@ -83,7 +84,6 @@
#if SANITIZER_LINUX && !SANITIZER_ANDROID
extern unsigned struct_rlimit64_sz;
- extern unsigned struct_statfs64_sz;
extern unsigned struct_statvfs_sz;
extern unsigned struct_statvfs64_sz;
#endif // SANITIZER_LINUX && !SANITIZER_ANDROID