elfutils: powerpc build fix
[openwrt/staging/mkresin.git] / package / libs / elfutils / patches / 0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch
1 From http://cgit.openembedded.org/openembedded-core/plain/meta/recipes-devtools/elfutils/files/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch
2
3 From 2e2232d0935bf8ef6e66ebffba3be68a73b5b3e5 Mon Sep 17 00:00:00 2001
4 From: Khem Raj <raj.khem@gmail.com>
5 Date: Sun, 8 Sep 2019 15:57:59 -0700
6 Subject: [PATCH] ppc_initreg.c: Incliude asm/ptrace.h for pt_regs definition
7
8 Fixes
9 | ../../elfutils-0.176/backends/ppc_initreg.c:79:22: error: field 'r' has incomplete type
10 | struct pt_regs r;
11 | ^
12
13 Upstream-Status: Pending
14
15 Signed-off-by: Khem Raj <raj.khem@gmail.com>
16 ---
17 backends/ppc_initreg.c | 1 +
18 1 file changed, 1 insertion(+)
19
20 diff --git a/backends/ppc_initreg.c b/backends/ppc_initreg.c
21 index 0e0d359..e5cca7e 100644
22 --- a/backends/ppc_initreg.c
23 +++ b/backends/ppc_initreg.c
24 @@ -33,6 +33,7 @@
25 #include <stdlib.h>
26 #if defined(__powerpc__) && defined(__linux__)
27 # include <sys/ptrace.h>
28 +# include <asm/ptrace.h>
29 # include <sys/user.h>
30 #endif
31
32 --
33 2.23.0
34