From cd1f51b6039efea70be558a1d74995a558f9017d Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 26 Mar 2022 12:47:48 -0700 Subject: abseil-cpp: Fix ppc/musl patch typecasting to pt_regs is not needed Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/abseil-ppc-fixes.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-oe/recipes-devtools') diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/abseil-ppc-fixes.patch b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/abseil-ppc-fixes.patch index e8048fe940..95210565c2 100644 --- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/abseil-ppc-fixes.patch +++ b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/abseil-ppc-fixes.patch @@ -62,7 +62,7 @@ Signed-off-by: Khem Raj +#elif defined(__powerpc__) && defined(__GLIBC__) return reinterpret_cast(context->uc_mcontext.uc_regs->gregs[32]); +#elif defined(__powerpc__) -+ return reinterpret_cast(((struct pt_regs *)context->uc_regs)->gregs[32]); ++ return reinterpret_cast((context->uc_regs)->gregs[32]); #elif defined(__riscv) return reinterpret_cast(context->uc_mcontext.__gregs[REG_PC]); #elif defined(__s390__) && !defined(__s390x__) -- cgit 1.2.3-korg