X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fopenswan%2Fpatches%2F130-sysctl_api_change.patch;fp=package%2Fopenswan%2Fpatches%2F130-sysctl_api_change.patch;h=e01b94ed82e1098dcb18d8f65c15ddd74311fbd3;hb=332cd7e0fbf4615ee674214707898abef85acc94;hp=0000000000000000000000000000000000000000;hpb=6e1353be006d8bc561a2d801602f86d74a1a6980;p=openwrt-10.03%2F.git 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 000000000..e01b94ed8 --- /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; + }