brctl: fix compilation on 2.4.x kernels
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 31 Jan 2009 20:08:21 +0000 (20:08 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 31 Jan 2009 20:08:21 +0000 (20:08 -0000)
networking/brctl.c

index 69e3c869c1c9b2a0a16c8ab699e4ba3d0b926e4a..1b526894737b2468a860f2e384193098c98694ba 100644 (file)
 #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