summaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/tls.c
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2006-11-03 07:07:23 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-11-03 21:27:59 +0100
commit1f6f61649d8c64d7a3a4d143405df9a7bdd4af10 (patch)
tree16ea2d6d87b0edf1e0f7348d431ccae4229b22c0 /arch/um/os-Linux/tls.c
parent[PATCH] uml: fix I/O hang (diff)
downloadlinux-1f6f61649d8c64d7a3a4d143405df9a7bdd4af10.tar.xz
linux-1f6f61649d8c64d7a3a4d143405df9a7bdd4af10.zip
[PATCH] uml: include tidying
In order to get the __NR_* constants, we need sys/syscall.h. linux/unistd.h works as well since it includes syscall.h, however syscall.h is more parsimonious. We were inconsistent in this, and this patch adds syscall.h includes where necessary and removes linux/unistd.h includes where they are not needed. asm/unistd.h also includes the __NR_* constants, but these are not the glibc-sanctioned ones, so this also removes one such inclusion. Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/os-Linux/tls.c')
-rw-r--r--arch/um/os-Linux/tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/os-Linux/tls.c b/arch/um/os-Linux/tls.c
index 9f7999f27c77..16215b990804 100644
--- a/arch/um/os-Linux/tls.c
+++ b/arch/um/os-Linux/tls.c
@@ -1,7 +1,7 @@
#include <errno.h>
+#include <unistd.h>
#include <sys/ptrace.h>
#include <sys/syscall.h>
-#include <unistd.h>
#include <asm/ldt.h>
#include "sysdep/tls.h"
#include "uml-config.h"