From d65241e13bfe51685616774bbd49fb9498d7c035 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 1 Mar 2008 15:34:17 +0000 Subject: fix switch-robo.c compile errors on linux 2.4 SVN-Revision: 10539 --- package/switch/src/switch-robo.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'package') 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 { -- cgit v1.2.3