[packages] ipset: linux/export.h is only in Kernel 3.2 and later, ipset incorrectly...
[openwrt/svn-archive/archive.git] / net / ipset / patches / 100-export.h.patch
1 --- a/kernel/net/netfilter/ipset/ip_set_getport.c
2 +++ b/kernel/net/netfilter/ipset/ip_set_getport.c
3 @@ -8,7 +8,7 @@
4 /* Get Layer-4 data from the packets */
5
6 #include <linux/version.h>
7 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)
8 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
9 #include <linux/export.h>
10 #endif
11 #include <linux/ip.h>
12 --- a/kernel/net/netfilter/ipset/pfxlen.c
13 +++ b/kernel/net/netfilter/ipset/pfxlen.c
14 @@ -1,5 +1,5 @@
15 #include <linux/version.h>
16 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)
17 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
18 #include <linux/export.h>
19 #endif
20 #include <linux/netfilter/ipset/pfxlen.h>