diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-05-28 20:43:18 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-05-28 20:43:18 +0000 |
commit | d7bd317c91138814b463322b8149a9a84544df38 (patch) | |
tree | 3e09fe7f068c620554fba436a8f21d423f34dafe /package/openswan/patches/130-sysctl_api_change.patch | |
parent | 53c998915baff23d6536f28245e3c62453964118 (diff) | |
download | upstream-d7bd317c91138814b463322b8149a9a84544df38.tar.gz upstream-d7bd317c91138814b463322b8149a9a84544df38.tar.bz2 upstream-d7bd317c91138814b463322b8149a9a84544df38.zip |
update openswan to latest upstream version and add fixes for 2.6.21 api changes
SVN-Revision: 7379
Diffstat (limited to 'package/openswan/patches/130-sysctl_api_change.patch')
-rw-r--r-- | package/openswan/patches/130-sysctl_api_change.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/openswan/patches/130-sysctl_api_change.patch b/package/openswan/patches/130-sysctl_api_change.patch new file mode 100644 index 0000000000..e01b94ed82 --- /dev/null +++ b/package/openswan/patches/130-sysctl_api_change.patch @@ -0,0 +1,16 @@ +diff -ur openswan.old/linux/net/ipsec/sysctl_net_ipsec.c openswan.dev/linux/net/ipsec/sysctl_net_ipsec.c +--- openswan.old/linux/net/ipsec/sysctl_net_ipsec.c 2004-07-10 21:11:18.000000000 +0200 ++++ openswan.dev/linux/net/ipsec/sysctl_net_ipsec.c 2007-05-28 22:40:57.001031592 +0200 +@@ -130,7 +130,11 @@ + + int ipsec_sysctl_register(void) + { +- ipsec_table_header = register_sysctl_table(ipsec_root_table, 0); ++#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,20) ++ ipsec_table_header = register_sysctl_table(ipsec_root_table); ++#else ++ ipsec_table_header = register_sysctl_table(ipsec_root_table, 0); ++#endif + if (!ipsec_table_header) { + return -ENOMEM; + } |