This is only used in archutils/Unix/CrashHandler.cpp so conditionalize it.
This commit is contained in:
@@ -42,8 +42,10 @@ bool GetThreadBacktraceContext( uint64_t ThreadID, BacktraceContext *ctx );
|
|||||||
|
|
||||||
/* Set up a BacktraceContext to get a backtrace after receiving a signal, given
|
/* Set up a BacktraceContext to get a backtrace after receiving a signal, given
|
||||||
* a ucontext_t (see sigaction(2)). (This interface is UNIX-specific.) */
|
* a ucontext_t (see sigaction(2)). (This interface is UNIX-specific.) */
|
||||||
|
#if defined(UNIX)
|
||||||
#include <ucontext.h>
|
#include <ucontext.h>
|
||||||
void GetSignalBacktraceContext( BacktraceContext *ctx, const ucontext_t *uc );
|
void GetSignalBacktraceContext( BacktraceContext *ctx, const ucontext_t *uc );
|
||||||
|
#endif
|
||||||
|
|
||||||
#define BACKTRACE_METHOD_NOT_AVAILABLE ((void*) -1)
|
#define BACKTRACE_METHOD_NOT_AVAILABLE ((void*) -1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user