Fix ucontext_t forward declare for mac.

(cherry picked from commit afa9c9cd72)

Change-Id: I6dacdfacfdff0c3ce5166207cfd60adb347ee347
This commit is contained in:
Christopher Ferris 2014-05-09 13:19:34 -07:00
parent 8fb224d32b
commit ee15ddee72
1 changed files with 5 additions and 0 deletions

View File

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