From 799c88627bbafdfbf7c0e7cd83e07069b3ac9154 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Mon, 5 Apr 2010 01:59:06 +0000 Subject: [PATCH] [packages] openswan: add a patch to fix build on 2.6.30 targets where CONFIG_COMPAT_NET_DEV_OPS is not set SVN-Revision: 20712 --- net/openswan/patches/130-compat_net_dev_ops.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 net/openswan/patches/130-compat_net_dev_ops.patch diff --git a/net/openswan/patches/130-compat_net_dev_ops.patch b/net/openswan/patches/130-compat_net_dev_ops.patch new file mode 100644 index 0000000000..607753b731 --- /dev/null +++ b/net/openswan/patches/130-compat_net_dev_ops.patch @@ -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 -- 2.30.2