[COMMITTED] Include sys/ptrace.h as early as possible.
Dmitry V. Levin
ldv@altlinux.org
Thu Feb 15 15:22:00 GMT 2018
On Thu, Feb 15, 2018 at 03:44:40PM +0100, Mark Wielaard wrote:
> On some systems, at least on Fedora 27 ppc64le with glibc 2.26-24 and
> kernel 4.14.18-300, including sys/ptrace.h late (after signal.h or
> sys/wait.h for example) will cause issues and produce errors like:
>
> In file included from /usr/include/asm/sigcontext.h:12:0,
> from /usr/include/bits/sigcontext.h:30,
> from /usr/include/signal.h:287,
> from /usr/include/sys/wait.h:36,
> from linux-pid-attach.c:38:
> /usr/include/sys/ptrace.h:73:3: error: expected identifier before numeric constant
> PTRACE_GETREGS = 12,
> ^
>
> Swapping the include order fixes these issues.
Yes, but we are also going to fix this in glibc, too.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/elfutils-devel/attachments/20180215/ca5e0601/attachment.sig>
More information about the Elfutils-devel
mailing list