diff options
author | Christopher Ferris <cferris@google.com> | 2014-05-09 13:19:34 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2014-05-09 14:17:31 -0700 |
commit | ee15ddee7277bdf2208642fd86307f1464b385f4 (patch) | |
tree | a24d78e4b9b4a97b527d729394d22a9a1cd0a285 /include | |
parent | 8fb224d32bd8526bbfd0a658c9e6cc1b28edffc3 (diff) | |
download | system_core-ee15ddee7277bdf2208642fd86307f1464b385f4.zip system_core-ee15ddee7277bdf2208642fd86307f1464b385f4.tar.gz system_core-ee15ddee7277bdf2208642fd86307f1464b385f4.tar.bz2 |
Fix ucontext_t forward declare for mac.
(cherry picked from commit afa9c9cd725c081e7286f09937a41ae9c28853d6)
Change-Id: I6dacdfacfdff0c3ce5166207cfd60adb347ee347
Diffstat (limited to 'include')
-rw-r--r-- | include/backtrace/Backtrace.h | 5 |
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: |