diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-10-18 11:26:02 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-10-18 11:26:02 +0000 |
commit | 0489e113d3e9fa9379fa38bc1a50f81414feab48 (patch) | |
tree | 55ffbcdee6aac997bd631dba0c37baee6c6305c4 | |
parent | 5cee73e486aaa617a9627bb69a6447d3369b62cc (diff) | |
download | compiler-rt-0489e113d3e9fa9379fa38bc1a50f81414feab48.tar.gz compiler-rt-0489e113d3e9fa9379fa38bc1a50f81414feab48.tar.bz2 compiler-rt-0489e113d3e9fa9379fa38bc1a50f81414feab48.tar.xz |
[sanitizer] Fix OSX build.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192966 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/sanitizer_common/sanitizer_platform_limits_posix.cc | 2 | ||||
-rw-r--r-- | lib/sanitizer_common/sanitizer_platform_limits_posix.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc index 010a1a4f..fd24d54f 100644 --- a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc +++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc @@ -136,6 +136,7 @@ namespace __sanitizer { unsigned struct_tms_sz = sizeof(struct tms); unsigned struct_sigevent_sz = sizeof(struct sigevent); unsigned struct_sched_param_sz = sizeof(struct sched_param); + unsigned struct_statfs_sz = sizeof(struct statfs); #if !SANITIZER_ANDROID unsigned ucontext_t_sz = sizeof(ucontext_t); @@ -143,7 +144,6 @@ namespace __sanitizer { #if SANITIZER_LINUX unsigned struct_rlimit_sz = sizeof(struct rlimit); - unsigned struct_statfs_sz = sizeof(struct statfs); unsigned struct_epoll_event_sz = sizeof(struct epoll_event); unsigned struct_sysinfo_sz = sizeof(struct sysinfo); unsigned struct_timespec_sz = sizeof(struct timespec); diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/lib/sanitizer_common/sanitizer_platform_limits_posix.h index 640002fc..bd41b900 100644 --- a/lib/sanitizer_common/sanitizer_platform_limits_posix.h +++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.h @@ -38,8 +38,7 @@ namespace __sanitizer { extern unsigned struct_itimerspec_sz; extern unsigned struct_sigevent_sz; extern unsigned struct_sched_param_sz; - extern unsigned struct_statvfs_sz; - extern unsigned struct_statvfs64_sz; + extern unsigned struct_statfs_sz; #if !SANITIZER_ANDROID extern unsigned ucontext_t_sz; @@ -63,7 +62,6 @@ namespace __sanitizer { extern unsigned struct_ustat_sz; extern unsigned struct_rlimit_sz; - extern unsigned struct_statfs_sz; extern unsigned struct_epoll_event_sz; extern unsigned struct_sysinfo_sz; extern unsigned struct_timespec_sz; @@ -86,6 +84,8 @@ namespace __sanitizer { #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 struct __sanitizer_iovec { |