summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2011-08-18 21:58:07 +0200
committerRichard Weinberger <richard@nod.at>2011-11-02 14:15:38 +0100
commit38b64aed786d59854ecc850ee5ece85b61dd252b (patch)
tree2205e2b20e0554f351890cde063e39d535faa123 /arch/x86
parentd0af6cbfa2eb675643cc651114364752e972900b (diff)
um: we need sys/user.h only on i386
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/um/os-Linux/registers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/um/os-Linux/registers.c b/arch/x86/um/os-Linux/registers.c
index fa2e5a669e41..0cdbb86b012b 100644
--- a/arch/x86/um/os-Linux/registers.c
+++ b/arch/x86/um/os-Linux/registers.c
@@ -6,7 +6,9 @@
#include <errno.h>
#include <sys/ptrace.h>
+#ifdef __i386__
#include <sys/user.h>
+#endif
#include "longjmp.h"
#include "sysdep/ptrace_user.h"