mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
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:
parent
ac3ba1b27e
commit
72d30f6950
@ -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…
x
Reference in New Issue
Block a user