Include <pthread.h> before we use pthread_self/pthread_kill

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Douglas Gregor 2011-04-29 16:12:17 +00:00
parent ac3ba1b27e
commit 72d30f6950

View File

@ -274,6 +274,9 @@ void llvm::sys::PrintStackTraceOnErrorSignal() {
#ifdef __APPLE__
#include <signal.h>
#include <pthread.h>
int raise(int sig) {
return pthread_kill(pthread_self(), sig);
}
@ -291,9 +294,6 @@ void __assert_rtn(const char *func,
abort();
}
#include <signal.h>
#include <pthread.h>
void abort() {
raise(SIGABRT);
usleep(1000);