disable quilt for kernel-headers
[openwrt.git] / package / openswan / patches / 130-sysctl_api_change.patch
1 Index: openswan-2.4.8/linux/net/ipsec/sysctl_net_ipsec.c
2 ===================================================================
3 --- openswan-2.4.8.orig/linux/net/ipsec/sysctl_net_ipsec.c 2007-06-04 13:22:49.815282208 +0200
4 +++ openswan-2.4.8/linux/net/ipsec/sysctl_net_ipsec.c 2007-06-04 13:22:51.852972432 +0200
5 @@ -130,7 +130,11 @@
6
7 int ipsec_sysctl_register(void)
8 {
9 - ipsec_table_header = register_sysctl_table(ipsec_root_table, 0);
10 +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,20)
11 + ipsec_table_header = register_sysctl_table(ipsec_root_table);
12 +#else
13 + ipsec_table_header = register_sysctl_table(ipsec_root_table, 0);
14 +#endif
15 if (!ipsec_table_header) {
16 return -ENOMEM;
17 }
This page took 0.040483 seconds and 5 git commands to generate.