diff options
author | David S. Miller <davem@davemloft.net> | 2005-07-24 22:35:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-07-24 22:35:08 -0400 |
commit | 4b502421aac89c8d4e61ecc89a70065a33305a0b (patch) | |
tree | 81f1a6f285623e2eb6393cd0dc7dce50bbf6448e /drivers/sbus/char/envctrl.c | |
parent | 2d1aea8dd02ad35658864de52a3e0f9f033e63f4 (diff) |
[SPARC]: Fix __KERNEL_SYSCALLS__ defining in envctrl.c and bbc_envctrl.c
It needs to happen before any header includes because nowadays
some things implicitly include asm/unistd.h which ends up being
before the __KERNEL_SYSCALLS__ define gets done.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/sbus/char/envctrl.c')
-rw-r--r-- | drivers/sbus/char/envctrl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/sbus/char/envctrl.c b/drivers/sbus/char/envctrl.c index 0c7cd7e7e2e5..9a8c572554f5 100644 --- a/drivers/sbus/char/envctrl.c +++ b/drivers/sbus/char/envctrl.c | |||
@@ -19,6 +19,8 @@ | |||
19 | * Daniele Bellucci <bellucda@tiscali.it> | 19 | * Daniele Bellucci <bellucda@tiscali.it> |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #define __KERNEL_SYSCALLS__ | ||
23 | |||
22 | #include <linux/config.h> | 24 | #include <linux/config.h> |
23 | #include <linux/module.h> | 25 | #include <linux/module.h> |
24 | #include <linux/sched.h> | 26 | #include <linux/sched.h> |
@@ -35,7 +37,6 @@ | |||
35 | #include <asm/uaccess.h> | 37 | #include <asm/uaccess.h> |
36 | #include <asm/envctrl.h> | 38 | #include <asm/envctrl.h> |
37 | 39 | ||
38 | #define __KERNEL_SYSCALLS__ | ||
39 | static int errno; | 40 | static int errno; |
40 | #include <asm/unistd.h> | 41 | #include <asm/unistd.h> |
41 | 42 | ||