]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
backends: Swap sys/ptrace.h and asm/ptrace.h include order on s390.
authorMark Wielaard <mark@klomp.org>
Mon, 17 Jul 2017 15:26:25 +0000 (17:26 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 17 Jul 2017 15:27:01 +0000 (17:27 +0200)
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>
backends/ChangeLog
backends/s390_initreg.c

index c5f61e85a35b51d483dec1a9fc5edb1479f99cc5..d62824513cdc88a83a201d98344f5f75745dd7d0 100644 (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.
index 011305ceabaa1fb15f270360006f51d240a8c159..23bf8edcc012777222de42e46978a0b19fd45acb 100644 (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_