100-workaround--pt-reg-collisions-ppc.patch 317 B

1234567891011121314151617
  1. --- a/ptrace.h
  2. +++ b/ptrace.h
  3. @@ -30,7 +30,14 @@
  4. # define ptrace_peeksiginfo_args XXX_ptrace_peeksiginfo_args
  5. # endif
  6. +#if POWERPC
  7. +#include <linux/types.h>
  8. +#define __ASSEMBLY__
  9. +#endif
  10. # include <linux/ptrace.h>
  11. +#if POWERPC
  12. +#undef __ASSEMBLY__
  13. +#endif
  14. # ifdef HAVE_STRUCT_IA64_FPREG
  15. # undef ia64_fpreg