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:
parent
3a088524cb
commit
b138037b26
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue