[llvm-commits] [compiler-rt] r147896 - /compiler-rt/trunk/lib/asan/asan_interceptors.cc
Kostya Serebryany
kcc at google.com
Tue Jan 10 15:36:59 PST 2012
Author: kcc
Date: Tue Jan 10 17:36:59 2012
New Revision: 147896
URL: http://llvm.org/viewvc/llvm-project?rev=147896&view=rev
Log:
[asan] hopefully fix the build on MacOS 10.6 (the code did work on 10.7, where I tested it)
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=147896&r1=147895&r2=147896&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Tue Jan 10 17:36:59 2012
@@ -28,6 +28,7 @@
#include <string.h>
#include <strings.h>
+#include <pthread.h>
namespace __asan {
@@ -223,13 +224,10 @@
}
extern "C"
-int pthread_create(void *thread, const void *attr,
- void *(*start_routine) (void *), void *arg);
-extern "C"
#ifndef __APPLE__
__attribute__((visibility("default")))
#endif
-int WRAP(pthread_create)(void *thread, const void *attr,
+int WRAP(pthread_create)(pthread_t *thread, const pthread_attr_t *attr,
void *(*start_routine) (void *), void *arg) {
GET_STACK_TRACE_HERE(kStackTraceMax, /*fast_unwind*/false);
AsanThread *curr_thread = asanThreadRegistry().GetCurrent();
More information about the llvm-commits
mailing list