]> git.ipfire.org Git - thirdparty/glibc.git/commit
S390: fix sys/ptrace.h to make it includible again after asm/ptrace.h
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 23 Jul 2017 23:22:53 +0000 (23:22 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 23 Jul 2017 23:22:53 +0000 (23:22 +0000)
commitcab91f947a6059907a314a91f4c90abcccfb0262
treec28e08faf83fd061882f9c56e86b7b8ccff0ee0e
parent64a1daed189ab6fff11b33dd8d493962460f0f6c
S390: fix sys/ptrace.h to make it includible again after asm/ptrace.h

sys/ptrace.h on S390 used to be includible both before and after
asm/ptrace.h, until commit b08a6a0dea63742313ed3d9577c1e2d83436b196
among other changes introduced PTRACE_SINGLEBLOCK enum constant which
is also defined in asm/ptrace.h as a macro, making sys/ptrace.h fail
to compile when included after asm/ptrace.h.

* sysdeps/unix/sysv/linux/s390/sys/ptrace.h [_LINUX_PTRACE_H ||
_S390_PTRACE_H]: Undefine all PTRACE_* macro constants defined
later as enum constants, except PTRACE_PEEKUSER, PTRACE_POKEUSER,
and PTRACE_SEIZE_DEVEL that are not defined by Linux headers.
ChangeLog
sysdeps/unix/sysv/linux/s390/sys/ptrace.h