[PATCH] backends/ppc_initreg.c: include <asm/ptrace.h>.
Érico Nogueira
ericonr@disroot.org
Tue Feb 2 02:14:32 GMT 2021
From: Érico Rolim <erico.erc@gmail.com>
Necessary on musl, doesn't affect the build on glibc.
---
backends/ChangeLog | 4 ++++
backends/ppc_initreg.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/backends/ChangeLog b/backends/ChangeLog
index f22cd57f..eb15c81d 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,3 +1,7 @@
+2021-02-01 Érico Nogueira <ericonr@disroot.org>
+
+ * ppc_initreg.c: Also include <asm/ptrace.h>.
+
2020-12-12 Dmitry V. Levin <ldv@altlinux.org>
* aarch64_retval.c (aarch64_return_value_location): Fix spelling typo
diff --git a/backends/ppc_initreg.c b/backends/ppc_initreg.c
index 0e0d3599..72cdb860 100644
--- a/backends/ppc_initreg.c
+++ b/backends/ppc_initreg.c
@@ -32,6 +32,7 @@
#include <stdlib.h>
#if defined(__powerpc__) && defined(__linux__)
+# include <asm/ptrace.h>
# include <sys/ptrace.h>
# include <sys/user.h>
#endif
--
2.30.0
More information about the Elfutils-devel
mailing list