ptrace.h: add __ prefix to ptrace_peeksiginfo_args
commit9341dde4d56ca71b61b47c8b87a06e6d5813ed0e
authorMike Frysinger <vapier@gentoo.org>
Sun, 5 Jan 2014 21:07:13 +0000 (5 16:07 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Jan 2014 13:07:33 +0000 (6 08:07 -0500)
tree4cca0dcb7c702987c9b16c4969a9dfafc45c5c94
parent4cff0293efa09d894084e090d3d9836f6db6bf36
ptrace.h: add __ prefix to ptrace_peeksiginfo_args

All the other ptrace structures in this file have a __ prefix except this
new one.  This in turn causes build problems for most packages that try to
use ptrace such as strace:

gcc -DHAVE_CONFIG_H -I. -I../..  -I../../linux/x86_64 -I../../linux \
-I./linux  -Wall -Wwrite-strings -g -O2 -MT process.o -MD -MP \
-MF .deps/process.Tpo -c -o process.o ../../process.c
In file included from ../../process.c:63:0:
/usr/include/linux/ptrace.h:58:8: error: redefinition of 'struct ptrace_peeksiginfo_args'
 struct ptrace_peeksiginfo_args {
        ^
In file included from ../../defs.h:159:0,
                 from ../../process.c:37:
/usr/include/sys/ptrace.h:191:8: note: originally defined here
 struct ptrace_peeksiginfo_args
        ^

Since this struct was introduced in glibc-2.18, there shouldn't be any
real regressions with adding the __ prefix.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
ChangeLog
ports/ChangeLog.aarch64
ports/ChangeLog.ia64
ports/ChangeLog.tile
ports/sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
ports/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
ports/sysdeps/unix/sysv/linux/tile/sys/ptrace.h
sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
sysdeps/unix/sysv/linux/s390/sys/ptrace.h
sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
sysdeps/unix/sysv/linux/sys/ptrace.h