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
This commit is contained in:
Christopher Ferris 2014-05-09 11:04:09 -07:00
parent 3a088524cb
commit b138037b26

View file

@ -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.