diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-02-07 09:52:43 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-02-07 09:52:43 +0000 |
commit | 4ea6816247a211e731b7929ca08d682c781e3348 (patch) | |
tree | 068c8e1122e477b879718ea109559e3dadcc1d2e /compiler-rt/lib/interception | |
parent | df2f0bff372166593fe981c852f2c5484a38810f (diff) | |
download | bcm5719-llvm-4ea6816247a211e731b7929ca08d682c781e3348.tar.gz bcm5719-llvm-4ea6816247a211e731b7929ca08d682c781e3348.zip |
[sanitizer] OFF_T on Mac is u64.
llvm-svn: 174600
Diffstat (limited to 'compiler-rt/lib/interception')
-rw-r--r-- | compiler-rt/lib/interception/interception.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/interception/interception.h b/compiler-rt/lib/interception/interception.h index c8a0543dcb6..00675341830 100644 --- a/compiler-rt/lib/interception/interception.h +++ b/compiler-rt/lib/interception/interception.h @@ -30,7 +30,12 @@ typedef __sanitizer::s64 INTMAX_T; // WARNING: OFF_T may be different from OS type off_t, depending on the value of // _FILE_OFFSET_BITS. This definition of OFF_T matches the ABI of system calls // like pread and mmap, as opposed to pread64 and mmap64. +// Mac is special. +#ifdef __APPLE__ +typedef __sanitizer::u64 OFF_T; +#else typedef __sanitizer::uptr OFF_T; +#endif typedef __sanitizer::u64 OFF64_T; // How to add an interceptor: |