diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-02-15 09:14:26 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-02-15 09:14:26 +0000 |
commit | 1e7e2370aa527432cd545b326cfe6d7714f1ae72 (patch) | |
tree | d78534ad5d7ac815e4662cf18ae9f9592b544974 /compiler-rt | |
parent | dfb45f4d684c00f58b4007a1bcf384bb1f191cac (diff) | |
download | bcm5719-llvm-1e7e2370aa527432cd545b326cfe6d7714f1ae72.tar.gz bcm5719-llvm-1e7e2370aa527432cd545b326cfe6d7714f1ae72.zip |
AddressSanitizer: don't include pthread.h in asan_interceptors.cc on Linux
llvm-svn: 150573
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/asan/asan_interceptors.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler-rt/lib/asan/asan_interceptors.cc b/compiler-rt/lib/asan/asan_interceptors.cc index cb2a8bdc226..87b3f676316 100644 --- a/compiler-rt/lib/asan/asan_interceptors.cc +++ b/compiler-rt/lib/asan/asan_interceptors.cc @@ -26,17 +26,16 @@ #include <new> #include <ctype.h> -#ifndef _WIN32 -# include <pthread.h> -#else +#if defined(_WIN32) // FIXME: remove when we start intercepting on Windows. Currently it's needed to // define memset/memcpy intrinsics. # include <intrin.h> -#endif +#endif // _WIN32 #if defined(__APPLE__) // FIXME(samsonov): Gradually replace system headers with declarations of // intercepted functions. +#include <pthread.h> #include <signal.h> #include <string.h> #include <strings.h> |