projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fea2dcd
)
fix switch-robo.c compile errors on linux 2.4
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 1 Mar 2008 15:34:17 +0000
(15:34 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 1 Mar 2008 15:34:17 +0000
(15:34 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10539
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/switch/src/switch-robo.c
patch
|
blob
|
history
diff --git
a/package/switch/src/switch-robo.c
b/package/switch/src/switch-robo.c
index
5bcd85b
..
28d8de3
100644
(file)
--- 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 {