From 8b6257aba231cb0e82196cf778b9fc3631f2ec39 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 llvm-svn: 130510 --- 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);