Em 05/02/2021 12:06, Mark Wielaard escreveu:
Hi,

On Tue, 2021-02-02 at 06:22 +0300, Dmitry V. Levin wrote:
Said that, I think it's safe to include <asm/ptrace.h> right before
<sys/user.h> on powerpc since in glibc the latter includes the former.

So that would move the <asm/ptrace> include after the <sys/ptrace>
include. Érico, would that work in your case?

It seems to build correctly, and struct pt_regs will have been defined before any of its fields are used. I can send a v3 with this change, then.

Thank you both :)


Thanks,

Mark

Reply via email to