[llvm-commits] [compiler-rt] r150573 - /compiler-rt/trunk/lib/asan/asan_interceptors.cc
Alexey Samsonov
samsonov at google.com
Wed Feb 15 01:14:26 PST 2012
Author: samsonov
Date: Wed Feb 15 03:14:26 2012
New Revision: 150573
URL: http://llvm.org/viewvc/llvm-project?rev=150573&view=rev
Log:
AddressSanitizer: don't include pthread.h in asan_interceptors.cc on Linux
Modified:
compiler-rt/trunk/lib/asan/asan_interceptors.cc
Modified: compiler-rt/trunk/lib/asan/asan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_interceptors.cc?rev=150573&r1=150572&r2=150573&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Wed Feb 15 03:14:26 2012
@@ -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>
More information about the llvm-commits
mailing list