[packages] openswan: add a patch to fix build on 2.6.30 targets where CONFIG_COMPAT_NET_DEV_OPS is not set
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20712 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
093a1fb91c
commit
ef2d4a1b62
15
net/openswan/patches/130-compat_net_dev_ops.patch
Normal file
15
net/openswan/patches/130-compat_net_dev_ops.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- a/linux/include/openswan/ipsec_kversion.h
|
||||
+++ b/linux/include/openswan/ipsec_kversion.h
|
||||
@@ -339,6 +339,12 @@
|
||||
# define HAVE_CURRENT_UID
|
||||
#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 HAVE_SKB_DST 1
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user