commit | afa9c9cd725c081e7286f09937a41ae9c28853d6 | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Fri May 09 13:19:34 2014 -0700 |
committer | Christopher Ferris <cferris@google.com> | Fri May 09 13:19:34 2014 -0700 |
tree | 5717ae7d403a1135edc015852a2f762ec89d757c | |
parent | bf6c2dbef5ab775f7c6af6a2776793c2af41bc40 [diff] |
Fix ucontext_t forward declare for mac. Change-Id: I30470f5cc25553dee25d4858f64ec5af13aa20c9
diff --git a/include/backtrace/Backtrace.h b/include/backtrace/Backtrace.h index 84b5631..e07d322 100644 --- a/include/backtrace/Backtrace.h +++ b/include/backtrace/Backtrace.h
@@ -47,8 +47,13 @@ // 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: