From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Josef Schlehofer Date: Tue, 23 Sep 2025 18:35:30 +0200 Subject: [PATCH] powerpc: include for PT_NIP declaration This patch conditionally includes when available to ensure PT_NIP is properly declared, fixing build failures such as: error: 'PT_NIP' was not declared in this scope; did you mean 'PT_NUM'? It happened on musl and powerpc --- src/stacktrace_powerpc-linux-inl.h | 3 +++ 1 file changed, 3 insertions(+) --- a/src/stacktrace_powerpc-linux-inl.h +++ b/src/stacktrace_powerpc-linux-inl.h @@ -48,6 +48,9 @@ #include #include +#ifdef HAVE_ASM_PTRACE_H +#include +#endif #if HAVE_SYS_UCONTEXT_H #include #elif HAVE_UCONTEXT_H