[packages] openswan: update to 2.6.28 (closes: #7544, #7725, #7782)
[openwrt/svn-archive/archive.git] / net / openswan / patches / 130-compat_net_dev_ops.patch
1 --- a/linux/include/openswan/ipsec_kversion.h
2 +++ b/linux/include/openswan/ipsec_kversion.h
3 @@ -363,6 +363,12 @@
4 #endif
5 #endif
6
7 +#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,30)
8 +# ifndef CONFIG_COMPAT_NET_DEV_OPS
9 +# define USE_NETDEV_OPS
10 +# endif
11 +#endif
12 +
13 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)
14 # define USE_NETDEV_OPS
15 #else