diff options
Diffstat (limited to 'meta/recipes-devtools/strace/strace/0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch')
-rw-r--r-- | meta/recipes-devtools/strace/strace/0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/meta/recipes-devtools/strace/strace/0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch b/meta/recipes-devtools/strace/strace/0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch index daafceb37b..fb5f72529f 100644 --- a/meta/recipes-devtools/strace/strace/0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch +++ b/meta/recipes-devtools/strace/strace/0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch | |||
@@ -13,22 +13,19 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
13 | ptrace.h | 8 +++++++- | 13 | ptrace.h | 8 +++++++- |
14 | 1 file changed, 7 insertions(+), 1 deletion(-) | 14 | 1 file changed, 7 insertions(+), 1 deletion(-) |
15 | 15 | ||
16 | diff --git a/ptrace.h b/ptrace.h | ||
17 | index 89d4b95..b3f45bb 100644 | ||
18 | --- a/ptrace.h | 16 | --- a/ptrace.h |
19 | +++ b/ptrace.h | 17 | +++ b/ptrace.h |
20 | @@ -30,7 +30,13 @@ | 18 | @@ -30,7 +30,13 @@ |
21 | # define ptrace_peeksiginfo_args XXX_ptrace_peeksiginfo_args | 19 | # define ptrace_peeksiginfo_args XXX_ptrace_peeksiginfo_args |
22 | #endif | 20 | # endif |
23 | 21 | ||
24 | -#include <linux/ptrace.h> | ||
25 | +#if defined(POWERPC) && !defined(__GLIBC__) | 22 | +#if defined(POWERPC) && !defined(__GLIBC__) |
26 | +#define pt_regs uapi_pt_regs | 23 | +#define pt_regs uapi_pt_regs |
27 | +#endif | 24 | +#endif |
28 | +# include <linux/ptrace.h> | 25 | # include <linux/ptrace.h> |
29 | +#if defined(POWERPC) && !defined(__GLIBC__) | 26 | +#if defined(POWERPC) && !defined(__GLIBC__) |
30 | +# undef pt_regs | 27 | +# undef pt_regs |
31 | +#endif | 28 | +#endif |
32 | 29 | ||
33 | #ifdef HAVE_STRUCT_IA64_FPREG | 30 | # ifdef HAVE_STRUCT_IA64_FPREG |
34 | # undef ia64_fpreg | 31 | # undef ia64_fpreg |