* [patch] iptables 1.4.2: Fix compile warnings
@ 2008-10-23 12:58 Thomas Jarosch
2008-10-23 13:41 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Jarosch @ 2008-10-23 12:58 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Netfilter Development Mailinglist
[-- Attachment #1: Type: text/plain, Size: 122 bytes --]
Hello Patrick,
attached is a small patch to fix compilation warnings
of iptables 1.4.2 using gcc 4.3.2.
Cheers,
Thomas
[-- Attachment #2: iptables-1.4.2-fix-compile-warnings.patch --]
[-- Type: text/x-patch, Size: 2128 bytes --]
Fix compile warnings using gcc 4.3.2
libxt_dccp.c: In function 'port_to_service':
libxt_dccp.c:196: warning: implicit declaration of function 'htons'
libxt_sctp.c: In function 'port_to_service':
libxt_sctp.c:321: warning: implicit declaration of function 'htons'
libxt_tcp.c: In function 'port_to_service':
libxt_tcp.c:220: warning: implicit declaration of function 'htons'
libxt_udp.c: In function 'port_to_service':
libxt_udp.c:104: warning: implicit declaration of function 'htons'
Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
diff -u -r -p iptables-1.4.2.orig/extensions/libxt_dccp.c iptables-1.4.2/extensions/libxt_dccp.c
--- iptables-1.4.2.orig/extensions/libxt_dccp.c Thu Oct 23 12:33:44 2008
+++ iptables-1.4.2/extensions/libxt_dccp.c Thu Oct 23 14:19:09 2008
@@ -12,6 +12,7 @@
#include <netdb.h>
#include <ctype.h>
+#include <netinet/in.h>
#include <xtables.h>
#include <linux/dccp.h>
#include <linux/netfilter/x_tables.h>
diff -u -r -p iptables-1.4.2.orig/extensions/libxt_sctp.c iptables-1.4.2/extensions/libxt_sctp.c
--- iptables-1.4.2.orig/extensions/libxt_sctp.c Thu Oct 23 12:33:45 2008
+++ iptables-1.4.2/extensions/libxt_sctp.c Thu Oct 23 14:18:28 2008
@@ -14,6 +14,7 @@
#include <netdb.h>
#include <ctype.h>
+#include <netinet/in.h>
#include <xtables.h>
#ifndef ARRAY_SIZE
diff -u -r -p iptables-1.4.2.orig/extensions/libxt_tcp.c iptables-1.4.2/extensions/libxt_tcp.c
--- iptables-1.4.2.orig/extensions/libxt_tcp.c Thu Oct 23 12:33:44 2008
+++ iptables-1.4.2/extensions/libxt_tcp.c Thu Oct 23 14:18:39 2008
@@ -4,6 +4,7 @@
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
+#include <netinet/in.h>
#include <xtables.h>
#include <linux/netfilter/xt_tcpudp.h>
diff -u -r -p iptables-1.4.2.orig/extensions/libxt_udp.c iptables-1.4.2/extensions/libxt_udp.c
--- iptables-1.4.2.orig/extensions/libxt_udp.c Thu Oct 23 12:33:44 2008
+++ iptables-1.4.2/extensions/libxt_udp.c Thu Oct 23 14:18:47 2008
@@ -4,6 +4,7 @@
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
+#include <netinet/in.h>
#include <xtables.h>
#include <linux/netfilter/xt_tcpudp.h>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] iptables 1.4.2: Fix compile warnings
2008-10-23 12:58 [patch] iptables 1.4.2: Fix compile warnings Thomas Jarosch
@ 2008-10-23 13:41 ` Patrick McHardy
0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2008-10-23 13:41 UTC (permalink / raw)
To: Thomas Jarosch; +Cc: Netfilter Development Mailinglist
Thomas Jarosch wrote:
> Hello Patrick,
>
> attached is a small patch to fix compilation warnings
> of iptables 1.4.2 using gcc 4.3.2.
Also applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-23 13:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-23 12:58 [patch] iptables 1.4.2: Fix compile warnings Thomas Jarosch
2008-10-23 13:41 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.