[patch] Allow brctl to compile with kernels < 2.6.7
walter harms
wharms at bfs.de
Fri Jan 30 15:07:05 UTC 2009
Timo Teräs schrieb:
> 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
>
redefines of sys defines ? ok, but maybe this is sufficent
#ifndef BRCTL_ADD_BRIDGE
#define BRCTL_ADD_BRIDGE SIOCBRADDBR
#define BRCTL_DEL_BRIDGE SIOCBRDELBR
#endif
More information about the busybox
mailing list