summaryrefslogtreecommitdiff
path: root/networking/brctl.c
diff options
context:
space:
mode:
authorDenis Vlasenko2009-01-31 20:08:21 +0000
committerDenis Vlasenko2009-01-31 20:08:21 +0000
commit802cab15e5407269cc3bb3a53fe076e86b62307e (patch)
tree89628b56710f07240ae1fe3465382fbbcb62f8c4 /networking/brctl.c
parent9ec0ecbfdde2396c4c1c91b4a040ccb006f424c2 (diff)
downloadbusybox-802cab15e5407269cc3bb3a53fe076e86b62307e.zip
busybox-802cab15e5407269cc3bb3a53fe076e86b62307e.tar.gz
brctl: fix compilation on 2.4.x kernels
Diffstat (limited to 'networking/brctl.c')
-rw-r--r--networking/brctl.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/networking/brctl.c b/networking/brctl.c
index 69e3c86..1b52689 100644
--- a/networking/brctl.c
+++ b/networking/brctl.c
@@ -16,6 +16,20 @@
#include <linux/sockios.h>
#include <net/if.h>
+#ifndef SIOCBRADDBR
+# define SIOCBRADDBR BRCTL_ADD_BRIDGE
+#endif
+#ifndef SIOCBRDELBR
+# define SIOCBRDELBR BRCTL_DEL_BRIDGE
+#endif
+#ifndef SIOCBRADDIF
+# define SIOCBRADDIF BRCTL_ADD_IF
+#endif
+#ifndef SIOCBRDELIF
+# define SIOCBRDELIF BRCTL_DEL_IF
+#endif
+
+
/* Maximum number of ports supported per bridge interface. */
#ifndef MAX_PORTS
#define MAX_PORTS 32