]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fix compile warnings using gcc 4.3.2
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 23 Oct 2008 13:41:27 +0000 (15:41 +0200)
committerPatrick McHardy <kaber@trash.net>
Thu, 23 Oct 2008 13:41:27 +0000 (15:41 +0200)
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>
Signed-off-by: Patrick McHardy <kaber@trash.net>
extensions/libxt_dccp.c
extensions/libxt_sctp.c
extensions/libxt_tcp.c
extensions/libxt_udp.c

index e1d6457d2fe3eb37a79d7022a5156c804753eb30..e33ddc3524c1d0281fa00cf90b621cac32436683 100644 (file)
@@ -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>
index 4f1d13f564871c03e2eb60ff6bc031ae48036c74..5bd06a376397fb0c8084b7b50c6308d97ef6e39d 100644 (file)
@@ -14,6 +14,7 @@
 #include <netdb.h>
 #include <ctype.h>
 
+#include <netinet/in.h>
 #include <xtables.h>
 
 #ifndef ARRAY_SIZE
index eef94a18b93a74406a4cac52e7fe5d492d386727..a720ba4ee75a5a903fa0995bcd491db1d23c84a3 100644 (file)
@@ -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>
 
index 0dfa36723d6147b3715c00bee2021af834972361..37e3036cd2fa47eb3ce4ec4b195e784ab38b5425 100644 (file)
@@ -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>