[package] fix iptraf compilation failure (#4387)
authorFlorian Fainelli <florian@openwrt.org>
Fri, 16 Jan 2009 14:41:55 +0000 (14:41 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 16 Jan 2009 14:41:55 +0000 (14:41 +0000)
SVN-Revision: 14054

net/iptraf/patches/004-includes_fix.patch [new file with mode: 0644]

diff --git a/net/iptraf/patches/004-includes_fix.patch b/net/iptraf/patches/004-includes_fix.patch
new file mode 100644 (file)
index 0000000..e268432
--- /dev/null
@@ -0,0 +1,22 @@
+diff -urN iptraf-3.0.0/src/othptab.c iptraf-3.0.0.new/src/othptab.c
+--- iptraf-3.0.0/src/othptab.c 2005-09-13 08:42:54.000000000 +0200
++++ iptraf-3.0.0.new/src/othptab.c     2009-01-16 15:45:08.000000000 +0100
+@@ -17,6 +17,7 @@
+ ***/
+ #include <asm/types.h>
++#include <sys/types.h>
+ #include <linux/if_ether.h>
+ #include <linux/if_tr.h>
+ #include <linux/if_fddi.h>
+diff -urN iptraf-3.0.0/src/tr.c iptraf-3.0.0.new/src/tr.c
+--- iptraf-3.0.0/src/tr.c      2005-09-13 08:42:54.000000000 +0200
++++ iptraf-3.0.0.new/src/tr.c  2009-01-16 15:47:47.000000000 +0100
+@@ -7,6 +7,7 @@
+  */
+ #include <asm/types.h>
++#include <sys/types.h>
+ #include <linux/if_tr.h>
+ #include <netinet/in.h>