devel/strace: fix build on mpc85xx target
[openwrt/staging/ynezz.git] / package / devel / strace / patches / 100-workaround--pt-reg-collisions-ppc.patch
diff --git a/package/devel/strace/patches/100-workaround--pt-reg-collisions-ppc.patch b/package/devel/strace/patches/100-workaround--pt-reg-collisions-ppc.patch
new file mode 100644 (file)
index 0000000..9b9d12a
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/ptrace.h
++++ b/ptrace.h
+@@ -52,7 +52,10 @@ extern long ptrace(int, int, char *, long);
+ # define ptrace_peeksiginfo_args XXX_ptrace_peeksiginfo_args
+ #endif
++#include <linux/types.h>
++#define __ASSEMBLY__
+ #include <linux/ptrace.h>
++#undef __ASSEMBLY__
+ #ifdef HAVE_STRUCT_IA64_FPREG
+ # undef ia64_fpreg
+--