Use the same type for i386_regs on 32-bit and 64-bit x86.
* defs.h: Stop including <asm/ptrace.h> for x86.
Change i386_regs from "struct pt_regs" to "struct user_regs_struct".
* syscall.c: Likewise.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/syscall.c b/syscall.c
index bf94eee..26c84de 100644
--- a/syscall.c
+++ b/syscall.c
@@ -67,7 +67,6 @@
#if defined(X86_64) || defined(X32)
# include <linux/ptrace.h>
-# include <asm/ptrace.h>
# include <sys/uio.h>
# include <elf.h>
#endif
@@ -672,7 +671,7 @@
}
#if defined(I386)
-struct pt_regs i386_regs;
+struct user_regs_struct i386_regs;
#elif defined(X86_64) || defined(X32)
/*
* On i386, pt_regs and user_regs_struct are the same,