aboutsummaryrefslogtreecommitdiffstats
path: root/package/switch/src/switch-robo.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-03-01 15:34:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-03-01 15:34:17 +0000
commitd65241e13bfe51685616774bbd49fb9498d7c035 (patch)
treec76d1437abd0a1e72a859086b0d0f4462e648a6a /package/switch/src/switch-robo.c
parente8bbb631e3fec58861c845e5f3cf00aff3f75218 (diff)
downloadupstream-d65241e13bfe51685616774bbd49fb9498d7c035.tar.gz
upstream-d65241e13bfe51685616774bbd49fb9498d7c035.tar.bz2
upstream-d65241e13bfe51685616774bbd49fb9498d7c035.zip
fix switch-robo.c compile errors on linux 2.4
SVN-Revision: 10539
Diffstat (limited to 'package/switch/src/switch-robo.c')
-rw-r--r--package/switch/src/switch-robo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c
index 5bcd85bd15..28d8de326b 100644
--- a/package/switch/src/switch-robo.c
+++ b/package/switch/src/switch-robo.c
@@ -62,6 +62,10 @@
#define SIOCGETCPHYRD (SIOCDEVPRIVATE + 9)
#define SIOCSETCPHYWR (SIOCDEVPRIVATE + 10)
+/* linux 2.4 does not have 'bool' */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
+#define bool int
+#endif
/* Data structure for a Roboswitch device. */
struct robo_switch {