Fix compilation on 2.4 kernels
authorFlorian Fainelli <florian@openwrt.org>
Wed, 13 Jun 2007 17:53:46 +0000 (17:53 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 13 Jun 2007 17:53:46 +0000 (17:53 +0000)
SVN-Revision: 7615

package/iproute2/patches/007-version_includes.patch [new file with mode: 0644]

diff --git a/package/iproute2/patches/007-version_includes.patch b/package/iproute2/patches/007-version_includes.patch
new file mode 100644 (file)
index 0000000..dc2d522
--- /dev/null
@@ -0,0 +1,14 @@
+diff -urN iproute-2.6.20-070313/include/linux/netfilter_ipv4/ip_tables.h iproute-2.6.20-070313.new/include/linux/netfilter_ipv4/ip_tables.h
+--- iproute-2.6.20-070313/include/linux/netfilter_ipv4/ip_tables.h     2007-03-13 22:50:56.000000000 +0100
++++ iproute-2.6.20-070313.new/include/linux/netfilter_ipv4/ip_tables.h 2007-06-13 19:50:04.000000000 +0200
+@@ -112,7 +112,10 @@
+ #define IPT_CONTINUE XT_CONTINUE
+ #define IPT_RETURN XT_RETURN
+
++#include <linux/version.h> 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+ #include <linux/netfilter/xt_tcpudp.h>
++#endif
+ #define ipt_udp xt_udp
+ #define ipt_tcp xt_tcp