summaryrefslogtreecommitdiff
path: root/package/switch
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
parente8bbb631e3fec58861c845e5f3cf00aff3f75218 (diff)
downloadmtk-20170518-d65241e13bfe51685616774bbd49fb9498d7c035.zip
mtk-20170518-d65241e13bfe51685616774bbd49fb9498d7c035.tar.gz
mtk-20170518-d65241e13bfe51685616774bbd49fb9498d7c035.tar.bz2
fix switch-robo.c compile errors on linux 2.4
SVN-Revision: 10539
Diffstat (limited to 'package/switch')
-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 5bcd85b..28d8de3 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 {