aboutsummaryrefslogtreecommitdiffstats
path: root/package/switch/src
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
commit9cae1e48f52e807ccb06fa28c256bbb0422d1ea4 (patch)
treeca2ac3d3924243cfe0add14fdb1b9abb0f25e823 /package/switch/src
parentfea2dcd1d493d7fffb4d4f0720977bcf4a2951d4 (diff)
downloadupstream-9cae1e48f52e807ccb06fa28c256bbb0422d1ea4.tar.gz
upstream-9cae1e48f52e807ccb06fa28c256bbb0422d1ea4.tar.bz2
upstream-9cae1e48f52e807ccb06fa28c256bbb0422d1ea4.zip
fix switch-robo.c compile errors on linux 2.4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10539 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch/src')
-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 {