aports/main/ltrace/gcc14.patch
Natanael Copa 2cfb35ff94 main/ltrace: fix build with gcc 14
gcc 14 caught a bug introduced in a musl fix for ppc64le.

fixes commit 29ecdbd2f3 (main/ltrace: add ppc64le support)
2024-08-28 05:18:14 +00:00

12 lines
331 B
Diff

diff --git a/sysdeps/linux-gnu/ppc/regs.c b/sysdeps/linux-gnu/ppc/regs.c
index 5b4d762..401d503 100644
--- a/sysdeps/linux-gnu/ppc/regs.c
+++ b/sysdeps/linux-gnu/ppc/regs.c
@@ -26,6 +26,7 @@
#include <sys/ptrace.h>
#include <asm/ptrace.h>
#include <errno.h>
+#include <string.h>
#ifdef HAVE_ERROR_H
#include <error.h>
#endif