[patch] Allow brctl to compile with kernels < 2.6.7

Timo Teräs timo.teras at iki.fi
Fri Jan 30 12:56:33 UTC 2009


walter harms wrote:
> 
> 
> #if LINUX_VERSION_CODE <KERNEL_VERSION(2,6,7)
> #define CODE1  RCTL_ADD_BRIDGE: BRCTL_DEL_BRIDGE
> #else
> #define  CODE1       SIOCBRADDBR : SIOCBRDELBR,
> #endif
> 

Why not just in the beginning:

#if LINUX_VERSION_CODE < ...
#define BRCTL_ADD_BRIDGE SIOCBRADDBR
#define BRCTL_DEL_BRIDGE SIOCBRDELBR
#endif

?

- Timo


More information about the busybox mailing list