Fix compliation on arm64 Mac with jemalloc (#8458)
The arm_thread_state64_get_pc used later in the file is defined in mach kernel headers. Apparently they get included if you use the system malloc but not if you use jemalloc.
This commit is contained in:
parent
a66814fd7a
commit
1bf02e1ca9
@ -54,6 +54,10 @@ typedef ucontext_t sigcontext_t;
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__APPLE__) && defined(__arm64__)
|
||||||
|
#include <mach/mach.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Globals */
|
/* Globals */
|
||||||
static int bug_report_start = 0; /* True if bug report header was already logged. */
|
static int bug_report_start = 0; /* True if bug report header was already logged. */
|
||||||
static pthread_mutex_t bug_report_start_mutex = PTHREAD_MUTEX_INITIALIZER;
|
static pthread_mutex_t bug_report_start_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user