[package] fix siit compilation failures on brcm-2.4

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18228 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Florian Fainelli 2009-10-30 14:14:53 +00:00
parent 1b86e6a1bd
commit 9814a479c1
1 changed files with 2 additions and 2 deletions

View File

@ -1386,7 +1386,7 @@ static bool header_ops_init = false;
static struct header_ops siit_header_ops ____cacheline_aligned; static struct header_ops siit_header_ops ____cacheline_aligned;
#endif #endif
#ifndef CONFIG_COMPAT_NET_DEV_OPS #if !(defined CONFIG_COMPAT_NET_DEV_OPS) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
static const struct net_device_ops siit_netdev_ops = { static const struct net_device_ops siit_netdev_ops = {
.ndo_open = siit_open, .ndo_open = siit_open,
.ndo_stop = siit_release, .ndo_stop = siit_release,
@ -1413,7 +1413,7 @@ siit_init(struct net_device *dev)
dev->stop = siit_release; dev->stop = siit_release;
dev->hard_start_xmit = siit_xmit; dev->hard_start_xmit = siit_xmit;
#else #else
#ifndef CONFIG_COMPAT_NET_DEV_OPS #if !(defined CONFIG_COMPAT_NET_DEV_OPS) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
dev->netdev_ops = &siit_netdev_ops; dev->netdev_ops = &siit_netdev_ops;
#endif #endif
#endif #endif