projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac3ba1b
)
Include <pthread.h> before we use pthread_self/pthread_kill
author
Douglas Gregor
<dgregor@apple.com>
Fri, 29 Apr 2011 16:12:17 +0000
(16:12 +0000)
committer
Douglas Gregor
<dgregor@apple.com>
Fri, 29 Apr 2011 16:12:17 +0000
(16:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130510
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Unix/Signals.inc
patch
|
blob
|
history
diff --git
a/lib/Support/Unix/Signals.inc
b/lib/Support/Unix/Signals.inc
index fade9069ba7d865b45ffddaad744e5a90cf38e68..e286869e775d9c0ed0a3fd538b0ac241ed79b31e 100644
(file)
--- a/
lib/Support/Unix/Signals.inc
+++ b/
lib/Support/Unix/Signals.inc
@@
-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);