[llvm-commits] [compiler-rt] r153188 - /compiler-rt/trunk/lib/asan/asan_interceptors.cc
Alexey Samsonov
samsonov at google.com
Wed Mar 21 08:02:40 PDT 2012
Author: samsonov
Date: Wed Mar 21 10:02:39 2012
New Revision: 153188
URL: http://llvm.org/viewvc/llvm-project?rev=153188&view=rev
Log:
[asan] one more try to remove pthread.h from asan_interceptors.cc
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=153188&r1=153187&r2=153188&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Wed Mar 21 10:02:39 2012
@@ -24,12 +24,6 @@
#include <new>
-#if defined(__APPLE__)
-// FIXME(samsonov): Gradually replace system headers with declarations of
-// intercepted functions.
-#include <pthread.h>
-#endif // __APPLE__
-
// Use extern declarations of intercepted functions on Mac and Windows
// to avoid including system headers.
#if defined(__APPLE__) || (defined(_WIN32) && !defined(_DLL))
@@ -80,6 +74,12 @@
void* __stdcall CreateThread(void *sec, size_t st, void* start,
void *arg, DWORD fl, DWORD *id);
# endif
+
+// Posix threads.
+# if !defined(_WIN32)
+int pthread_create(void *thread, void *attr, void *(*start_routine)(void*),
+ void *arg);
+# endif
} // extern "C"
#endif
More information about the llvm-commits
mailing list