summaryrefslogtreecommitdiffstats
path: root/include/backtrace
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2014-05-09 13:19:34 -0700
committerChristopher Ferris <cferris@google.com>2014-05-09 13:19:34 -0700
commitafa9c9cd725c081e7286f09937a41ae9c28853d6 (patch)
tree5717ae7d403a1135edc015852a2f762ec89d757c /include/backtrace
parentbf6c2dbef5ab775f7c6af6a2776793c2af41bc40 (diff)
downloadsystem_core-afa9c9cd725c081e7286f09937a41ae9c28853d6.zip
system_core-afa9c9cd725c081e7286f09937a41ae9c28853d6.tar.gz
system_core-afa9c9cd725c081e7286f09937a41ae9c28853d6.tar.bz2
Fix ucontext_t forward declare for mac.
Change-Id: I30470f5cc25553dee25d4858f64ec5af13aa20c9
Diffstat (limited to 'include/backtrace')
-rw-r--r--include/backtrace/Backtrace.h5
1 files changed, 5 insertions, 0 deletions
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 @@ 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: