packages/net/openswan/patches/130-compat_net_dev_ops.patch
nico 0e9c472232 [packages] openswan: update to 2.6.28 (closes: #7544, #7725, #7782)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@22693 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-18 08:10:45 +00:00

16 lines
344 B
Diff

--- a/linux/include/openswan/ipsec_kversion.h
+++ b/linux/include/openswan/ipsec_kversion.h
@@ -363,6 +363,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