Make linuxigd compile again (#1941)
authorFlorian Fainelli <florian@openwrt.org>
Fri, 13 Jul 2007 12:57:23 +0000 (12:57 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 13 Jul 2007 12:57:23 +0000 (12:57 +0000)
SVN-Revision: 7964

net/linuxigd/patches/002-netfilter_nat_headers.patch [new file with mode: 0644]

diff --git a/net/linuxigd/patches/002-netfilter_nat_headers.patch b/net/linuxigd/patches/002-netfilter_nat_headers.patch
new file mode 100644 (file)
index 0000000..abbc11e
--- /dev/null
@@ -0,0 +1,16 @@
+diff -urN linuxigd-1.0/iptc.c linuxigd-1.0.new/iptc.c
+--- linuxigd-1.0/iptc.c        2006-09-11 17:55:48.000000000 +0200
++++ linuxigd-1.0.new/iptc.c    2007-07-13 14:50:23.000000000 +0200
+@@ -6,7 +6,12 @@
+ #include <string.h>
+ #include <iptables.h>
+ #include <libiptc/libiptc.h>
++#include <linux/version.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
++#include <linux/netfilter/nf_nat.h>
++#else
+ #include <linux/netfilter_ipv4/ip_nat.h>
++#endif
+ #include <arpa/inet.h> /* inet_addr */
+ #include "globals.h"
+ #include "util.h"