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 | 74d0540ceae99c550b00f75883a737f4a1de6351 (patch) | |
tree | b9f4b17b393d63b4ad3a47b1633045a1de67e0eb /lib/interception/interception.h | |
parent | 2d740a3ff4c38f1b8d93357bece483939d65dd3f (diff) | |
download | compiler-rt-74d0540ceae99c550b00f75883a737f4a1de6351.tar.gz compiler-rt-74d0540ceae99c550b00f75883a737f4a1de6351.tar.bz2 compiler-rt-74d0540ceae99c550b00f75883a737f4a1de6351.tar.xz |
[sanitizer] OFF_T on Mac is u64.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/interception/interception.h')
-rw-r--r-- | lib/interception/interception.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/interception/interception.h b/lib/interception/interception.h index c8a0543d..00675341 100644 --- a/lib/interception/interception.h +++ b/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: |