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:
David Gilman 2021-03-01 01:15:26 -05:00 committed by GitHub
parent adfb3a52c6
commit c6fb349f05

View File

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