8251846: Replace __linux which is no longer defined
Reviewed-by: dholmes, goetz
This commit is contained in:
parent
fb300a3ff3
commit
f1a5cbb11e
@ -738,7 +738,7 @@ void disarm_assert_poison() {
|
||||
|
||||
static void store_context(const void* context) {
|
||||
memcpy(&g_stored_assertion_context, context, sizeof(ucontext_t));
|
||||
#if defined(__linux) && defined(PPC64)
|
||||
#if defined(LINUX) && defined(PPC64)
|
||||
// on Linux ppc64, ucontext_t contains pointers into itself which have to be patched up
|
||||
// after copying the context (see comment in sys/ucontext.h):
|
||||
*((void**) &g_stored_assertion_context.uc_mcontext.regs) = &(g_stored_assertion_context.uc_mcontext.gp_regs);
|
||||
|
Loading…
x
Reference in New Issue
Block a user