devel/strace: fix build only on powerpc arch
[openwrt/.git] / package / devel / strace / patches / 100-workaround--pt-reg-collisions-ppc.patch
1 diff --git a/ptrace.h b/ptrace.h
2 index ddb46cb..48a54b8 100644
3 --- a/ptrace.h
4 +++ b/ptrace.h
5 @@ -55,7 +55,14 @@ extern long ptrace(int, int, char *, long);
6  # define ptrace_peeksiginfo_args XXX_ptrace_peeksiginfo_args
7  #endif
8  
9 +#if POWERPC
10 +#include <linux/types.h>
11 +#define __ASSEMBLY__
12 +#endif
13  #include <linux/ptrace.h>
14 +#if POWERPC
15 +#undef __ASSEMBLY__
16 +#endif
17  
18  #ifdef HAVE_STRUCT_IA64_FPREG
19  # undef ia64_fpreg