--- /dev/null
+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"