summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenry Culver <henry@culcon.com>2012-01-20 13:40:55 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2012-01-20 13:40:55 +0100
commit94daadfc825c504dcb9bd510b895c6c673229b60 (patch)
tree5e094035bfcdc312851f7e70bbb6a426c5a13da7
parentfe8800c8ad505196d4cde9fca21d868751760c9f (diff)
Fix the inclusion of linux/export.h
The tests for inclusion of linux/export.h in ipset-6.11:kernel/net/netfilter/ipset/{ip_set_getport.c,pfxlen.c} are incorrect, linux/export.h did not go in until 3.2.0.
-rw-r--r--kernel/net/netfilter/ipset/ip_set_getport.c2
-rw-r--r--kernel/net/netfilter/ipset/pfxlen.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/net/netfilter/ipset/ip_set_getport.c b/kernel/net/netfilter/ipset/ip_set_getport.c
index 0f77a53..a66c67b 100644
--- 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>
diff --git a/kernel/net/netfilter/ipset/pfxlen.c b/kernel/net/netfilter/ipset/pfxlen.c
index c5191c7..56ca480 100644
--- 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>