diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-10-30 14:14:53 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-10-30 14:14:53 +0000 |
commit | 525c6661763ecf4d7cd381560a2559660d5bb4dc (patch) | |
tree | d40b616fc0458d0e6f63c3e81a7b0fad5ce77580 /package/siit/src | |
parent | 6c2ad19baf22d5a956ae5851a50f24028ac6198c (diff) | |
download | mtk-20170518-525c6661763ecf4d7cd381560a2559660d5bb4dc.zip mtk-20170518-525c6661763ecf4d7cd381560a2559660d5bb4dc.tar.gz mtk-20170518-525c6661763ecf4d7cd381560a2559660d5bb4dc.tar.bz2 |
fix siit compilation failures on brcm-2.4
SVN-Revision: 18228
Diffstat (limited to 'package/siit/src')
-rw-r--r-- | package/siit/src/siit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/siit/src/siit.c b/package/siit/src/siit.c index c645a25..f458f5d 100644 --- a/package/siit/src/siit.c +++ b/package/siit/src/siit.c @@ -1386,7 +1386,7 @@ static bool header_ops_init = false; static struct header_ops siit_header_ops ____cacheline_aligned; #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 = { .ndo_open = siit_open, .ndo_stop = siit_release, @@ -1413,7 +1413,7 @@ siit_init(struct net_device *dev) dev->stop = siit_release; dev->hard_start_xmit = siit_xmit; #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; #endif #endif |