summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
authorAli Polatel <alip@exherbo.org>2013-09-24 20:04:32 +0300
committerDmitry V. Levin <ldv@altlinux.org>2013-09-26 13:08:43 +0000
commit0b4060f61f1bb101b5d8d084714b7d2feacdb199 (patch)
treeec58178b66603ab10c1bf6df1ea75715f5b0e1bc /syscall.c
parent7daacbbbe7349677476a3d2fbf174dcf86f171be (diff)
downloadstrace-0b4060f61f1bb101b5d8d084714b7d2feacdb199.tar.gz
strace-0b4060f61f1bb101b5d8d084714b7d2feacdb199.tar.bz2
strace-0b4060f61f1bb101b5d8d084714b7d2feacdb199.tar.xz
Work around conflict between <sys/ptrace.h> and <linux/ptrace.h>
Since glibc-2.18~39 <sys/ptrace.h> defines ptrace_peeksiginfo_args which collides with <linux/ptrace.h>. * configure.ac: Check for `struct ptrace_peeksiginfo_args' in <sys/ptrace.h>. * process.c: Work around potential conflict between <sys/ptrace.h> and <linux/ptrace.h> by redefining ptrace_peeksiginfo_args. * signal.c: Likewise. * syscall.c: Likewise. * util.c: Likewise. Signed-off-by: Ali Polatel <alip@exherbo.org>
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/syscall.c b/syscall.c
index 83a95bd..3477dcd 100644
--- a/syscall.c
+++ b/syscall.c
@@ -48,7 +48,11 @@
# ifdef HAVE_STRUCT_PT_ALL_USER_REGS
# define pt_all_user_regs XXX_pt_all_user_regs
# endif
+# ifdef HAVE_STRUCT_PTRACE_PEEKSIGINFO_ARGS
+# define ptrace_peeksiginfo_args XXX_ptrace_peeksiginfo_args
+# endif
# include <linux/ptrace.h>
+# undef ptrace_peeksiginfo_args
# undef ia64_fpreg
# undef pt_all_user_regs
#endif