X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/05ccb6dea8ad8550f2b61bfe3db9dcc825cc5643..5e10b16d95550d4656d8b594f3cbb6a3892db688:/package/siit/src/siit.c?ds=inline diff --git a/package/siit/src/siit.c b/package/siit/src/siit.c index c645a2580..5362c1daa 100644 --- a/package/siit/src/siit.c +++ b/package/siit/src/siit.c @@ -4,9 +4,13 @@ * */ +#include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) +#include +#else #include +#endif #include -#include #include #include /* printk() */ #include @@ -1386,7 +1390,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 +1417,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