From: Dmitry V. Levin Date: Sat, 28 Feb 2015 12:20:21 +0000 (+0000) Subject: build: include ptrace.h after regs.h X-Git-Tag: v4.10~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7211dbcb2f8a43eb5d36bd15c7ba1267ba21e223;p=strace build: include ptrace.h after regs.h Restore the order of including and headers that was inadvertently changed by commit v4.9-280-g5503dd2. This should fix build on platforms like m68k where some constants are defined simultaneously as enums by and as macros by . * process.c: Include "ptrace.h" after "regs.h". * signal.c: Likewise. * syscall.c: Likewise. * util.c: Likewise. --- diff --git a/process.c b/process.c index a9b76c31..690ca8ef 100644 --- a/process.c +++ b/process.c @@ -42,12 +42,11 @@ #include "xlat/nt_descriptor_types.h" +#include "regs.h" #include "ptrace.h" #include "xlat/ptrace_cmds.h" #include "xlat/ptrace_setoptions_flags.h" -#include "regs.h" - #define uoff(member) offsetof(struct user, member) #define XLAT_UOFF(member) { uoff(member), "offsetof(struct user, " #member ")" } diff --git a/signal.c b/signal.c index 30358a19..e77fd4eb 100644 --- a/signal.c +++ b/signal.c @@ -34,8 +34,8 @@ #include "defs.h" #include -#include "ptrace.h" #include "regs.h" +#include "ptrace.h" #if defined(SPARC) || defined(SPARC64) || defined(MIPS) typedef struct { diff --git a/syscall.c b/syscall.c index 70ba8a09..36c1254e 100644 --- a/syscall.c +++ b/syscall.c @@ -37,6 +37,7 @@ /* for struct iovec */ #include +#include "regs.h" #include "ptrace.h" #if defined(SPARC64) @@ -46,8 +47,6 @@ # define PTRACE_SETREGS PTRACE_SETREGS64 #endif -#include "regs.h" - #if defined SPARC64 # include #elif defined SPARC diff --git a/util.c b/util.c index 89160404..02c5b9aa 100644 --- a/util.c +++ b/util.c @@ -39,8 +39,8 @@ #endif #include -#include "ptrace.h" #include "regs.h" +#include "ptrace.h" int string_to_uint(const char *str)