From ee15ddee7277bdf2208642fd86307f1464b385f4 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Fri, 9 May 2014 13:19:34 -0700 Subject: [PATCH] Fix ucontext_t forward declare for mac. (cherry picked from commit afa9c9cd725c081e7286f09937a41ae9c28853d6) Change-Id: I6dacdfacfdff0c3ce5166207cfd60adb347ee347 --- include/backtrace/Backtrace.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/backtrace/Backtrace.h b/include/backtrace/Backtrace.h index 84b5631de..e07d322f9 100644 --- a/include/backtrace/Backtrace.h +++ b/include/backtrace/Backtrace.h @@ -47,8 +47,13 @@ struct backtrace_frame_data_t { // Forward declarations. class BacktraceImpl; +#if defined(__APPLE__) +struct __darwin_ucontext; +typedef __darwin_ucontext ucontext_t; +#else struct ucontext; typedef ucontext ucontext_t; +#endif class Backtrace { public: