From 72d30f6950f48c7bec29e6b3c955784992304bae Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 29 Apr 2011 16:12:17 +0000 Subject: [PATCH] Include before we use pthread_self/pthread_kill git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130510 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Unix/Signals.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Support/Unix/Signals.inc b/lib/Support/Unix/Signals.inc index fade9069ba7..e286869e775 100644 --- a/lib/Support/Unix/Signals.inc +++ b/lib/Support/Unix/Signals.inc @@ -274,6 +274,9 @@ void llvm::sys::PrintStackTraceOnErrorSignal() { #ifdef __APPLE__ +#include +#include + int raise(int sig) { return pthread_kill(pthread_self(), sig); } @@ -291,9 +294,6 @@ void __assert_rtn(const char *func, abort(); } -#include -#include - void abort() { raise(SIGABRT); usleep(1000);