projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[feeds] add support for darcs-based feeds
[openwrt.git]
/
package
/
siit
/
src
/
siit.c
diff --git
a/package/siit/src/siit.c
b/package/siit/src/siit.c
index
c645a25
..
5362c1d
100644
(file)
--- a/
package/siit/src/siit.c
+++ b/
package/siit/src/siit.c
@@
-4,9
+4,13
@@
*
*/
*
*/
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
#include <linux/autoconf.h>
+#endif
#include <linux/module.h>
#include <linux/module.h>
-#include <linux/version.h>
#include <linux/sched.h>
#include <linux/kernel.h> /* printk() */
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/kernel.h> /* printk() */
#include <linux/slab.h>
@@
-1386,7
+1390,7
@@
static bool header_ops_init = false;
static struct header_ops siit_header_ops ____cacheline_aligned;
#endif
static struct header_ops siit_header_ops ____cacheline_aligned;
#endif
-#if
ndef 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,
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
dev->stop = siit_release;
dev->hard_start_xmit = siit_xmit;
#else
-#if
ndef 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
dev->netdev_ops = &siit_netdev_ops;
#endif
#endif
This page took
0.025648 seconds
and
4
git commands to generate.