From: Florian Fainelli Date: Fri, 30 Oct 2009 14:14:53 +0000 (+0000) Subject: [package] fix siit compilation failures on brcm-2.4 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=191a01fc895fc3e9d9940d071f627c9c2d2f7d14;p=openwrt%2Fsvn-archive%2Farchive.git [package] fix siit compilation failures on brcm-2.4 SVN-Revision: 18228 --- 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