Make linuxigd compile again (#1941)
[openwrt/svn-archive/archive.git] / net / linuxigd / patches / 002-netfilter_nat_headers.patch
1 diff -urN linuxigd-1.0/iptc.c linuxigd-1.0.new/iptc.c
2 --- linuxigd-1.0/iptc.c 2006-09-11 17:55:48.000000000 +0200
3 +++ linuxigd-1.0.new/iptc.c 2007-07-13 14:50:23.000000000 +0200
4 @@ -6,7 +6,12 @@
5 #include <string.h>
6 #include <iptables.h>
7 #include <libiptc/libiptc.h>
8 +#include <linux/version.h>
9 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
10 +#include <linux/netfilter/nf_nat.h>
11 +#else
12 #include <linux/netfilter_ipv4/ip_nat.h>
13 +#endif
14 #include <arpa/inet.h> /* inet_addr */
15 #include "globals.h"
16 #include "util.h"