packages/net/openswan/patches/130-compat_net_dev_ops.patch
jow 2922a6d275 [packages] openswan: fix typo in last commit, refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/packages@25610 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-20 15:20:37 +00:00

20 lines
437 B
Diff

---
linux/include/openswan/ipsec_kversion.h | 6 ++++++
1 file changed, 6 insertions(+)
--- a/linux/include/openswan/ipsec_kversion.h
+++ b/linux/include/openswan/ipsec_kversion.h
@@ -366,6 +366,12 @@
#endif
#endif
+#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,30)
+# ifndef CONFIG_COMPAT_NET_DEV_OPS
+# define USE_NETDEV_OPS
+# endif
+#endif
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)
# define USE_NETDEV_OPS
#else