Make sure that the PTRACE_... symbols are available for ppc/plt.c.
authorAnthony Foiani <anthony.foiani@gmail.com>
Wed Sep 29 08:31:17 2010 -0600 (2010-09-29)
changeset 213247eeda1e5872
parent 2131 469830f72fe7
child 2133 804a8f6d286a
Make sure that the PTRACE_... symbols are available for ppc/plt.c.

On a Fedora 12 x86_64 build/host box, this file was complaining about
PTRACE_PEEKTEXT being undefined. Adding in the "ptrace.h" include
fixed it.

Signed-off-by: Anthony Foiani <anthony.foiani@gmail.com>
patches/ltrace/0.5.3/160-fix-missing-ptrace-defines.patch
     1.1 --- a/patches/ltrace/0.5.3/160-fix-missing-ptrace-defines.patch	Sun Oct 03 23:11:27 2010 +0200
     1.2 +++ b/patches/ltrace/0.5.3/160-fix-missing-ptrace-defines.patch	Wed Sep 29 08:31:17 2010 -0600
     1.3 @@ -70,3 +70,12 @@
     1.4  +
     1.5  +#endif /* PTRACE_EVENT_FORK */
     1.6  +#endif /* __SYSDEPS_TRACE_H__ */
     1.7 +--- ltrace-0.5.3.orig/sysdeps/linux-gnu/ppc/plt.c	2009-07-25 09:13:02.000000000 -0600
     1.8 ++++ ltrace-0.5.3/sysdeps/linux-gnu/ppc/plt.c	2010-09-28 18:30:07.091618190 -0600
     1.9 +@@ -1,5 +1,6 @@
    1.10 + #include <gelf.h>
    1.11 + #include "common.h"
    1.12 ++#include "ptrace.h"
    1.13 + 
    1.14 + GElf_Addr
    1.15 + arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela * rela) {