1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

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

llvm-svn: 130510
This commit is contained in:
Douglas Gregor 2011-04-29 16:12:17 +00:00
parent 7c632e0001
commit 8b6257aba2

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);