4293512
commit 1dd301b7c302b9df980946e2d04ca99748754991
4293512
Author: Mark Wielaard <mark@klomp.org>
4293512
Date:   Mon Jul 17 17:26:25 2017 +0200
4293512
4293512
    backends: Swap sys/ptrace.h and asm/ptrace.h include order on s390.
4293512
    
4293512
    glibc 2.26 changed the sys/ptrace.h header so that it cannot be included
4293512
    after asm/ptrace.h. We still need to include the kernel asm/ptrace.h for
4293512
    the ptrace_area definition. Including it after sys/ptrace.h works against
4293512
    both old and new glibc.
4293512
    
4293512
    Signed-off-by: Mark Wielaard <mark@klomp.org>
4293512
4293512
diff --git a/backends/s390_initreg.c b/backends/s390_initreg.c
4293512
index 011305c..23bf8ed 100644
4293512
--- a/backends/s390_initreg.c
4293512
+++ b/backends/s390_initreg.c
4293512
@@ -34,8 +34,8 @@
4293512
 #include <assert.h>
4293512
 #if defined(__s390__) && defined(__linux__)
4293512
 # include <sys/user.h>
4293512
-# include <asm/ptrace.h>
4293512
 # include <sys/ptrace.h>
4293512
+# include <asm/ptrace.h>
4293512
 #endif
4293512
 
4293512
 #define BACKEND s390_