[patch] Allow brctl to compile with kernels < 2.6.7

Rob Landley rob at landley.net
Tue Feb 3 17:24:47 UTC 2009


On Friday 30 January 2009 07:24:11 Wander Winkelhorst wrote:
> +/* ioctl's got renamed in 2.6.7 */
> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7)
> +#define SIOCBRADDBR BRCTL_ADD_BRIDGE
> +#define SIOCBRDELBR BRCTL_DEL_BRIDGE
> +#define SIOCBRADDIF BRCTL_ADD_IF
> +#define SIOCBRDELIF BRCTL_DEL_IF
> +#endif
> +

I note that include/platform.h was introduced to hide all these sorts of 
things in one place.

(Questionable whether something this specific belongs there, but we've got 
fixes for linux/loop.h in there which isn't used much outside of the losetup 
code, so I thought I'd mention it...)

Rob


More information about the busybox mailing list