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
adfb3a52c6
commit
c6fb349f05
@ -54,6 +54,10 @@ typedef ucontext_t sigcontext_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__) && defined(__arm64__)
|
||||
#include <mach/mach.h>
|
||||
#endif
|
||||
|
||||
/* Globals */
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user