From 411bd7afceea79bdda4e0aefea48ccf1a3a912d0 Mon Sep 17 00:00:00 2001 From: jow Date: Mon, 12 Mar 2012 19:15:12 +0000 Subject: [PATCH] [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 --- net/ipset/patches/100-export.h.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 net/ipset/patches/100-export.h.patch diff --git a/net/ipset/patches/100-export.h.patch b/net/ipset/patches/100-export.h.patch new file mode 100644 index 000000000..d8a9ca23d --- /dev/null +++ b/net/ipset/patches/100-export.h.patch @@ -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 +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0) + #include + #endif + #include +--- a/kernel/net/netfilter/ipset/pfxlen.c ++++ b/kernel/net/netfilter/ipset/pfxlen.c +@@ -1,5 +1,5 @@ + #include +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0) + #include + #endif + #include