Martin Zobel-Helas wrote: > > from ../syscall.c:72: > > /usr/include/asm-sparc/ptrace.h:44: error: expected '=', ',', ';', 'asm' > > or '__attribute__' before 'pt_regs_is_syscall'
I coincidentally bumped into this issue a few days ago when playing with ptrace on sparc. Defining bool locally fixed the problem for me; it's protected by "#ifdef __KERNEL__" in <linux/types.h>. Hacky patch attached (untested as my sparc box is now in storage, alas). Regards, -- Chris Lamb, UK [EMAIL PROTECTED] GPG: 0x634F9A20
diff -urNad strace-4.5.17+cvs080723.orig/syscall.c strace-4.5.17+cvs080723/syscall.c --- strace-4.5.17+cvs080723.orig/syscall.c 2008-07-29 01:00:51.000000000 +0100 +++ strace-4.5.17+cvs080723/syscall.c 2008-07-29 01:03:30.000000000 +0100 @@ -69,6 +69,9 @@ # ifdef HAVE_STRUCT_PT_ALL_USER_REGS # define pt_all_user_regs XXX_pt_all_user_regs # endif +#if defined (LINUX) && (defined(SPARC) || defined(SPARC64)) && !defined (bool) +# define bool int +#endif #include <linux/ptrace.h> # undef ia64_fpreg # undef pt_all_user_regs
signature.asc
Description: PGP signature