diff options
author | viro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk> | 2005-09-09 17:09:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-10 13:16:27 -0400 |
commit | 0aaaa028297a0e2aed9671419a11d8e17510cb51 (patch) | |
tree | 0588fcac9a57c14a244d5efe32211d25e903b864 /drivers/sbus/char/bbc_envctrl.c | |
parent | fe08ac3178243fbed61f24878ffcf5cfb53fceb1 (diff) |
[PATCH] envctrl fixes
envctrl doesn't need unistd.h; moreover, since it declares errno static
gcc4 gets very unhappy about including unistd.h.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/sbus/char/bbc_envctrl.c')
-rw-r--r-- | drivers/sbus/char/bbc_envctrl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/sbus/char/bbc_envctrl.c b/drivers/sbus/char/bbc_envctrl.c index d44205d52bf3..d89f83f769f5 100644 --- a/drivers/sbus/char/bbc_envctrl.c +++ b/drivers/sbus/char/bbc_envctrl.c | |||
@@ -5,6 +5,7 @@ | |||
5 | */ | 5 | */ |
6 | 6 | ||
7 | #define __KERNEL_SYSCALLS__ | 7 | #define __KERNEL_SYSCALLS__ |
8 | static int errno; | ||
8 | 9 | ||
9 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
10 | #include <linux/kthread.h> | 11 | #include <linux/kthread.h> |
@@ -13,8 +14,6 @@ | |||
13 | #include <linux/delay.h> | 14 | #include <linux/delay.h> |
14 | #include <asm/oplib.h> | 15 | #include <asm/oplib.h> |
15 | #include <asm/ebus.h> | 16 | #include <asm/ebus.h> |
16 | static int errno; | ||
17 | #include <asm/unistd.h> | ||
18 | 17 | ||
19 | #include "bbc_i2c.h" | 18 | #include "bbc_i2c.h" |
20 | #include "max1617.h" | 19 | #include "max1617.h" |