diff options
author | H.J. Lu <hjl@gcc.gnu.org> | 2013-02-14 08:54:01 -0800 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2013-02-14 08:54:01 -0800 |
commit | 8afd2ed7206a0859f41c50c440615a4d06800a04 (patch) | |
tree | fca70d84446c4b38e9d738a8f5eaffbce03cfcb8 /libsanitizer/interception/interception.h | |
parent | 1c322ab1564f2511aa723fec3f34cdfc709c04b1 (diff) | |
download | gcc-8afd2ed7206a0859f41c50c440615a4d06800a04.zip gcc-8afd2ed7206a0859f41c50c440615a4d06800a04.tar.gz gcc-8afd2ed7206a0859f41c50c440615a4d06800a04.tar.bz2 |
OFF_T: Merged from upstream r175140
PR bootstrap/56327
* interception/interception.h (OFF_T): Merged from upstream
r175140.
From-SVN: r196054
Diffstat (limited to 'libsanitizer/interception/interception.h')
-rw-r--r-- | libsanitizer/interception/interception.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsanitizer/interception/interception.h b/libsanitizer/interception/interception.h index b4c4137..c4c5026 100644 --- a/libsanitizer/interception/interception.h +++ b/libsanitizer/interception/interception.h @@ -28,8 +28,8 @@ 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__ +// Mac and Linux/x86-64 are special. +#if defined(__APPLE__) || (defined(__linux__) && defined(__x86_64__)) typedef __sanitizer::u64 OFF_T; #else typedef __sanitizer::uptr OFF_T; |