packages/net/ipset/patches/100-export.h.patch
jow 411bd7afce [packages] ipset: linux/export.h is only in Kernel 3.2 and later, ipset incorrectly assumes 3.0 and above (#10378)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@30911 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-12 19:15:12 +00:00

21 lines
647 B
Diff

--- 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>