[asan] fix x32 build (H.J. Lu)

llvm-svn: 175140
This commit is contained in:
Kostya Serebryany 2013-02-14 08:05:55 +00:00
parent ae0a403dab
commit 039fa75e4d
1 changed files with 2 additions and 2 deletions

View File

@ -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;