projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae0a403
)
[asan] fix x32 build (H.J. Lu)
author
Kostya Serebryany
<kcc@google.com>
Thu, 14 Feb 2013 08:05:55 +0000
(08:05 +0000)
committer
Kostya Serebryany
<kcc@google.com>
Thu, 14 Feb 2013 08:05:55 +0000
(08:05 +0000)
llvm-svn: 175140
compiler-rt/lib/interception/interception.h
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/interception/interception.h
b/compiler-rt/lib/interception/interception.h
index
0067534
..
eb5ff8f
100644
(file)
--- a/
compiler-rt/lib/interception/interception.h
+++ b/
compiler-rt/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.
-#if
def __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;