summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-10-30 00:58:17 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-10-30 00:58:17 +0000
commit1bb2229028dd78280d24c26b9efbe8476d966e05 (patch)
tree763fcb55437bb3e68bc2cae2e4dc43cf490eb770 /lib/sanitizer_common/sanitizer_platform_limits_posix.cc
parent1d1cd7a9becac1b7a4e4e00853af44ad52c6465a (diff)
downloadcompiler-rt-1bb2229028dd78280d24c26b9efbe8476d966e05.tar.gz
[asan] Fix syscall hooks build on Android.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193670 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_platform_limits_posix.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_platform_limits_posix.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
index 8276a9696..133ddcf23 100644
--- a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
+++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
@@ -143,9 +143,12 @@ namespace __sanitizer {
unsigned struct_sched_param_sz = sizeof(struct sched_param);
unsigned struct_statfs_sz = sizeof(struct statfs);
+#if SANITIZER_MAC
+ unsigned struct_statfs64_sz = sizeof(struct statfs64);
+#endif
+
#if !SANITIZER_ANDROID
unsigned ucontext_t_sz = sizeof(ucontext_t);
- unsigned struct_statfs64_sz = sizeof(struct statfs64);
#endif // !SANITIZER_ANDROID
#if SANITIZER_LINUX