patch-defs_h 880 B

12345678910111213141516171819202122232425262728293031
  1. --- strace-4.8.orig/defs.h 2013-05-14 16:10:42.000000000 +0200
  2. +++ strace-4.8/defs.h 2013-10-24 18:52:25.000000000 +0200
  3. @@ -155,14 +155,14 @@ extern char *stpcpy(char *dst, const cha
  4. || defined(METAG) \
  5. || defined(TILE) \
  6. || defined(XTENSA) \
  7. - ) && defined(__GLIBC__)
  8. + ) && defined(__linux__)
  9. # include <sys/ptrace.h>
  10. #else
  11. /* Work around awkward prototype in ptrace.h. */
  12. # define ptrace xptrace
  13. # include <sys/ptrace.h>
  14. # undef ptrace
  15. -# ifdef POWERPC
  16. +# if defined(POWERPC) || defined(ARM)
  17. # define __KERNEL__
  18. # include <asm/ptrace.h>
  19. # undef __KERNEL__
  20. @@ -222,11 +222,6 @@ extern long ptrace(int, int, char *, lon
  21. # define PTRACE_EVENT_EXIT 6
  22. #endif
  23. -#if !defined(__GLIBC__)
  24. -# define PTRACE_PEEKUSER PTRACE_PEEKUSR
  25. -# define PTRACE_POKEUSER PTRACE_POKEUSR
  26. -#endif
  27. -
  28. #if USE_SEIZE
  29. # undef PTRACE_SEIZE
  30. # define PTRACE_SEIZE 0x4206