Unverified Commit 1bf02e1c authored by David Gilman's avatar David Gilman Committed by GitHub
Browse files

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.
parent a66814fd
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment