strace: update to version 2.26
[openwrt/staging/jogo.git] / package / devel / strace / patches / 100-workaround--pt-reg-collisions-ppc.patch
index 9b9d12a286e03be7d3b932e50ef78d314bb5918a..9560804a7a6f311611427ac2cf625a3c1d601e68 100644 (file)
@@ -1,14 +1,17 @@
 --- a/ptrace.h
 +++ b/ptrace.h
-@@ -52,7 +52,10 @@ extern long ptrace(int, int, char *, long);
+@@ -30,7 +30,14 @@
  # define ptrace_peeksiginfo_args XXX_ptrace_peeksiginfo_args
  #endif
  
++#if POWERPC
 +#include <linux/types.h>
 +#define __ASSEMBLY__
++#endif
  #include <linux/ptrace.h>
++#if POWERPC
 +#undef __ASSEMBLY__
++#endif
  
  #ifdef HAVE_STRUCT_IA64_FPREG
  # undef ia64_fpreg
---