[packages] ipset: linux/export.h is only in Kernel 3.2 and later, ipset incorrectly...
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 12 Mar 2012 19:15:12 +0000 (19:15 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 12 Mar 2012 19:15:12 +0000 (19:15 +0000)
SVN-Revision: 30911

net/ipset/patches/100-export.h.patch [new file with mode: 0644]

diff --git a/net/ipset/patches/100-export.h.patch b/net/ipset/patches/100-export.h.patch
new file mode 100644 (file)
index 0000000..d8a9ca2
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/kernel/net/netfilter/ipset/ip_set_getport.c
++++ b/kernel/net/netfilter/ipset/ip_set_getport.c
+@@ -8,7 +8,7 @@
+ /* Get Layer-4 data from the packets */
+ #include <linux/version.h>
+-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
+ #include <linux/export.h>
+ #endif
+ #include <linux/ip.h>
+--- a/kernel/net/netfilter/ipset/pfxlen.c
++++ b/kernel/net/netfilter/ipset/pfxlen.c
+@@ -1,5 +1,5 @@
+ #include <linux/version.h>
+-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
+ #include <linux/export.h>
+ #endif
+ #include <linux/netfilter/ipset/pfxlen.h>