From b138037b266487e79c729d9daae94ed31b93e550 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Fri, 9 May 2014 11:04:09 -0700 Subject: [PATCH] Fix mac build. Forward declare ucontext_t so that it's not necessary for ucontext.h to be included in the global header. Change-Id: Ic13677dd572ab1acd927f0a17b284f9b417a642f --- include/backtrace/Backtrace.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/backtrace/Backtrace.h b/include/backtrace/Backtrace.h index 561dfeb90..84b5631de 100644 --- a/include/backtrace/Backtrace.h +++ b/include/backtrace/Backtrace.h @@ -19,7 +19,6 @@ #include #include -#include #include #include @@ -48,6 +47,9 @@ struct backtrace_frame_data_t { // Forward declarations. class BacktraceImpl; +struct ucontext; +typedef ucontext ucontext_t; + class Backtrace { public: // Create the correct Backtrace object based on what is to be unwound.