forked from OSchip/llvm-project
AddressSanitizer: don't include pthread.h in asan_interceptors.cc on Linux
llvm-svn: 150573
This commit is contained in:
parent
dfb45f4d68
commit
1e7e2370aa
|
@ -26,17 +26,16 @@
|
||||||
#include <new>
|
#include <new>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifndef _WIN32
|
#if defined(_WIN32)
|
||||||
# include <pthread.h>
|
|
||||||
#else
|
|
||||||
// FIXME: remove when we start intercepting on Windows. Currently it's needed to
|
// FIXME: remove when we start intercepting on Windows. Currently it's needed to
|
||||||
// define memset/memcpy intrinsics.
|
// define memset/memcpy intrinsics.
|
||||||
# include <intrin.h>
|
# include <intrin.h>
|
||||||
#endif
|
#endif // _WIN32
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
// FIXME(samsonov): Gradually replace system headers with declarations of
|
// FIXME(samsonov): Gradually replace system headers with declarations of
|
||||||
// intercepted functions.
|
// intercepted functions.
|
||||||
|
#include <pthread.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
|
Loading…
Reference in New Issue