diff options
author | Christopher Ferris <cferris@google.com> | 2014-05-09 11:04:09 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2014-05-09 14:17:18 -0700 |
commit | 8fb224d32bd8526bbfd0a658c9e6cc1b28edffc3 (patch) | |
tree | a7c11af45a436cfc2c908466a5352f87cbe75e08 /include/backtrace | |
parent | e49e43d4aa201e1bfcf0f6f7dd934ba69b9d18d1 (diff) | |
download | system_core-8fb224d32bd8526bbfd0a658c9e6cc1b28edffc3.zip system_core-8fb224d32bd8526bbfd0a658c9e6cc1b28edffc3.tar.gz system_core-8fb224d32bd8526bbfd0a658c9e6cc1b28edffc3.tar.bz2 |
Fix mac build.
Forward declare ucontext_t so that it's not necessary for ucontext.h
to be included in the global header.
(cherry picked from commit b138037b266487e79c729d9daae94ed31b93e550)
Change-Id: I0ffb5bf7c53da8467dd8770880ff412a5158d639
Diffstat (limited to 'include/backtrace')
-rw-r--r-- | include/backtrace/Backtrace.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/backtrace/Backtrace.h b/include/backtrace/Backtrace.h index 561dfeb..84b5631 100644 --- a/include/backtrace/Backtrace.h +++ b/include/backtrace/Backtrace.h @@ -19,7 +19,6 @@ #include <inttypes.h> #include <stdint.h> -#include <ucontext.h> #include <string> #include <vector> @@ -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. |