fix switch-robo.c compile errors on linux 2.4
authorFelix Fietkau <nbd@openwrt.org>
Sat, 1 Mar 2008 15:34:17 +0000 (15:34 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 1 Mar 2008 15:34:17 +0000 (15:34 +0000)
SVN-Revision: 10539

package/switch/src/switch-robo.c

index 5bcd85bd158b3b2599e92e8db5f09d570832c417..28d8de326b96433da3ee46fde04026f4d00fa194 100644 (file)
 #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 {