elfutils: fix build on powerpc musl

This commit fixed https://github.com/project-openwrt/openwrt-kisco/issues/41
This commit is contained in:
ElonH 2020-04-21 19:54:32 +08:00
parent 2eed55ed55
commit 7fc016b1d2
No known key found for this signature in database
GPG Key ID: 5BCDD7F78A258D4C

View File

@ -0,0 +1,12 @@
diff --git a/backends/ppc_initreg.c b/backends/ppc_initreg.c
index 0e0d359..810e14a 100644
--- a/backends/ppc_initreg.c
+++ b/backends/ppc_initreg.c
@@ -33,6 +33,7 @@
#include <stdlib.h>
#if defined(__powerpc__) && defined(__linux__)
# include <sys/ptrace.h>
+# include <linux/ptrace.h>
# include <sys/user.h>
#endif