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 | 9814a479c172f98fd05527f7a6bb44bffc06b84f (patch) | |
tree | 7fe00b2c3339d4ec27161b51e3e894ab42131c87 | |
parent | 1b86e6a1bd770b3e9ad944da35b8a6c5110c0e97 (diff) | |
download | upstream-9814a479c172f98fd05527f7a6bb44bffc06b84f.tar.gz upstream-9814a479c172f98fd05527f7a6bb44bffc06b84f.tar.bz2 upstream-9814a479c172f98fd05527f7a6bb44bffc06b84f.zip |
[package] fix siit compilation failures on brcm-2.4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18228 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 c645a2580d..f458f5de4b 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 |