Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
8251846: Replace __linux which is no longer defined
Reviewed-by: dholmes, goetz
  • Loading branch information
TheRealMDoerr committed Aug 17, 2020
1 parent 203ab1b commit 7ff77a54c332861ea87c7db11172c862704b3b71
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);

0 comments on commit 7ff77a5

Please sign in to comment.