summaryrefslogtreecommitdiffstats
path: root/openwrt/target/linux/package/openswan/patches/fix-compile-pfkey.patch
diff options
context:
space:
mode:
authorwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-09-29 12:40:16 +0000
committerwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-09-29 12:40:16 +0000
commit213e41cc1fd62ade656030e5af5b554a04149b8c (patch)
tree4099fdc897773dddb6f27afcda1f532a7f155360 /openwrt/target/linux/package/openswan/patches/fix-compile-pfkey.patch
parent895299e89d2d8244212d60940574b790c1dddd28 (diff)
update openswan to 2.40
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2003 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target/linux/package/openswan/patches/fix-compile-pfkey.patch')
-rw-r--r--openwrt/target/linux/package/openswan/patches/fix-compile-pfkey.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/openwrt/target/linux/package/openswan/patches/fix-compile-pfkey.patch b/openwrt/target/linux/package/openswan/patches/fix-compile-pfkey.patch
new file mode 100644
index 000000000..0a0ece36e
--- /dev/null
+++ b/openwrt/target/linux/package/openswan/patches/fix-compile-pfkey.patch
@@ -0,0 +1,13 @@
+diff -Nur openswan-2.4.0.orig/linux/net/ipsec/pfkey_v2.c openswan-2.4.0/linux/net/ipsec/pfkey_v2.c
+--- openswan-2.4.0.orig/linux/net/ipsec/pfkey_v2.c 2005-09-06 04:10:03.000000000 +0200
++++ openswan-2.4.0/linux/net/ipsec/pfkey_v2.c 2005-09-21 09:32:49.214628750 +0200
+@@ -821,7 +821,9 @@
+ return 0; /* -EINVAL; */
+ }
+
++#ifdef NET_26
+ write_lock_bh(&pfkey_sock_lock);
++#endif
+
+ KLIPS_PRINT(debug_pfkey,
+ "klips_debug:pfkey_release: "