backends: Swap sys/ptrace.h and asm/ptrace.h include order on s390.

glibc 2.26 changed the sys/ptrace.h header so that it cannot be included
after asm/ptrace.h. We still need to include the kernel asm/ptrace.h for
the ptrace_area definition. Including it after sys/ptrace.h works against
both old and new glibc.

Signed-off-by: Mark Wielaard <mark@klomp.org>
This commit is contained in:
Mark Wielaard
2017-07-17 17:26:25 +02:00
parent d03be4f70c
commit 1dd301b7c3
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -1,3 +1,7 @@
2017-06-17 Mark Wielaard <mark@klomp.org>
* s390_initreg.c: Swap sys/ptrace.h and asm/ptrace.h include order.
2017-06-15 Andreas Schwab <schwab@linux-m68k.org>
* ppc_symbol.c (ppc_machine_flag_check): New function.
+1 -1
View File
@@ -34,8 +34,8 @@
#include <assert.h>
#if defined(__s390__) && defined(__linux__)
# include <sys/user.h>
# include <asm/ptrace.h>
# include <sys/ptrace.h>
# include <asm/ptrace.h>
#endif
#define BACKEND s390_