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:
parent
7c632e0001
commit
8b6257aba2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user