tsan: fix build

llvm-svn: 160267
This commit is contained in:
Dmitry Vyukov 2012-07-16 13:25:47 +00:00
parent c40c00767c
commit 5e5e36712b
2 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,8 @@
// Linux-specific code.
//===----------------------------------------------------------------------===//
#ifdef __linux__
#include "sanitizer_common/sanitizer_common.h"
#include "sanitizer_common/sanitizer_libc.h"
#include "sanitizer_common/sanitizer_procmaps.h"
@ -232,3 +234,5 @@ void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size,
} // namespace __tsan
#endif // #ifdef __linux__

View File

@ -12,6 +12,8 @@
// Linux-specific code.
//===----------------------------------------------------------------------===//
#ifdef __APPLE__
#include "sanitizer_common/sanitizer_common.h"
#include "sanitizer_common/sanitizer_libc.h"
#include "sanitizer_common/sanitizer_procmaps.h"
@ -106,3 +108,5 @@ void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size,
}
} // namespace __tsan
#endif // #ifdef __APPLE__