Restore the order of including <sys/reg.h> and <linux/ptrace.h>
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 <sys/reg.h> and as macros
by <asm/ptrace.h>.
* process.c: Include "ptrace.h" after "regs.h".
* signal.c: Likewise.
* syscall.c: Likewise.
* util.c: Likewise.
#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 ")" }
#include "defs.h"
#include <fcntl.h>
-#include "ptrace.h"
#include "regs.h"
+#include "ptrace.h"
#if defined(SPARC) || defined(SPARC64) || defined(MIPS)
typedef struct {
/* for struct iovec */
#include <sys/uio.h>
+#include "regs.h"
#include "ptrace.h"
#if defined(SPARC64)
# define PTRACE_SETREGS PTRACE_SETREGS64
#endif
-#include "regs.h"
-
#if defined SPARC64
# include <asm/psrcompat.h>
#elif defined SPARC
#endif
#include <sys/uio.h>
-#include "ptrace.h"
#include "regs.h"
+#include "ptrace.h"
int
string_to_uint(const char *str)