miniupnpd needs the same fix (#2000)
[openwrt/svn-archive/archive.git] / net / miniupnpd / patches / 101-netfilter_nat_headers.patch
1 diff -urN miniupnpd-1.0-RC6/linux/iptcrdr.c miniupnpd-1.0-RC6.new/linux/iptcrdr.c
2 --- miniupnpd-1.0-RC6/linux/iptcrdr.c 2007-06-11 15:25:40.000000000 +0200
3 +++ miniupnpd-1.0-RC6.new/linux/iptcrdr.c 2007-07-13 14:59:58.000000000 +0200
4 @@ -15,7 +15,12 @@
5 #include <dlfcn.h>
6 #include <libiptc/libiptc.h>
7 #include <iptables.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 "iptcrdr.h"
15
16 /* chain name to use, both in the nat table