summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2014-05-09 11:04:09 -0700
committerChristopher Ferris <cferris@google.com>2014-05-09 11:04:09 -0700
commitb138037b266487e79c729d9daae94ed31b93e550 (patch)
tree0a3847f8b0dc9d831b10a5e151f02eca7aa68b1f
parent3a088524cbd00c140c8fe043ce989ddcf28e7042 (diff)
downloadsystem_core-b138037b266487e79c729d9daae94ed31b93e550.zip
system_core-b138037b266487e79c729d9daae94ed31b93e550.tar.gz
system_core-b138037b266487e79c729d9daae94ed31b93e550.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. Change-Id: Ic13677dd572ab1acd927f0a17b284f9b417a642f
-rw-r--r--include/backtrace/Backtrace.h4
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.