diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-01-31 20:08:21 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-01-31 20:08:21 +0000 |
commit | 802cab15e5407269cc3bb3a53fe076e86b62307e (patch) | |
tree | 89628b56710f07240ae1fe3465382fbbcb62f8c4 | |
parent | 9ec0ecbfdde2396c4c1c91b4a040ccb006f424c2 (diff) | |
download | busybox-w32-802cab15e5407269cc3bb3a53fe076e86b62307e.tar.gz busybox-w32-802cab15e5407269cc3bb3a53fe076e86b62307e.tar.bz2 busybox-w32-802cab15e5407269cc3bb3a53fe076e86b62307e.zip |
brctl: fix compilation on 2.4.x kernels
-rw-r--r-- | networking/brctl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/networking/brctl.c b/networking/brctl.c index 69e3c869c..1b5268947 100644 --- a/networking/brctl.c +++ b/networking/brctl.c | |||
@@ -16,6 +16,20 @@ | |||
16 | #include <linux/sockios.h> | 16 | #include <linux/sockios.h> |
17 | #include <net/if.h> | 17 | #include <net/if.h> |
18 | 18 | ||
19 | #ifndef SIOCBRADDBR | ||
20 | # define SIOCBRADDBR BRCTL_ADD_BRIDGE | ||
21 | #endif | ||
22 | #ifndef SIOCBRDELBR | ||
23 | # define SIOCBRDELBR BRCTL_DEL_BRIDGE | ||
24 | #endif | ||
25 | #ifndef SIOCBRADDIF | ||
26 | # define SIOCBRADDIF BRCTL_ADD_IF | ||
27 | #endif | ||
28 | #ifndef SIOCBRDELIF | ||
29 | # define SIOCBRDELIF BRCTL_DEL_IF | ||
30 | #endif | ||
31 | |||
32 | |||
19 | /* Maximum number of ports supported per bridge interface. */ | 33 | /* Maximum number of ports supported per bridge interface. */ |
20 | #ifndef MAX_PORTS | 34 | #ifndef MAX_PORTS |
21 | #define MAX_PORTS 32 | 35 | #define MAX_PORTS 32 |