summaryrefslogtreecommitdiff
path: root/lib/interception
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-02-14 08:05:55 +0000
committerKostya Serebryany <kcc@google.com>2013-02-14 08:05:55 +0000
commitfbeb826198c3c3797dcb56785db2e0a0a5c7a9af (patch)
treec08ffaebb9778c1873862c10f1b2c54290dc2d06 /lib/interception
parent8da17ea3bc3ba0a28844642921247a3b9a1a3bcd (diff)
[asan] fix x32 build (H.J. Lu)
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/interception')
-rw-r--r--lib/interception/interception.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/interception/interception.h b/lib/interception/interception.h
index 006753418..eb5ff8f48 100644
--- a/lib/interception/interception.h
+++ b/lib/interception/interception.h
@@ -30,8 +30,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;