[iptables] libxt_TOS: fix compilation error
Patrick McHardy
netfilter-cvslog-bounces at lists.netfilter.org
Wed Oct 22 08:58:51 CEST 2008
Gitweb: http://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commit;h=56156cda196154aa015b7df030a2a9bbf34f4fcc
commit 56156cda196154aa015b7df030a2a9bbf34f4fcc
Author: Jirí Moravec <jim.lkml at gmail.com>
AuthorDate: Wed Oct 22 08:57:38 2008 +0200
Commit: Patrick McHardy <kaber at trash.net>
CommitDate: Wed Oct 22 08:57:38 2008 +0200
libxt_TOS: fix compilation error
Fix compilation error caused by double definition of IPPROTO_SCTP:
In file included from /usr/include/netinet/ip.h:25,
from /usr/include/linux/ip.h:19,
from tos_values.c:4,
from libxt_TOS.c:15:
/usr/include/netinet/in.h:84: error: expected identifier before numeric constant
make[2]: *** [libxt_TOS.oo] Error 1
Signed-off-by: Patrick McHardy <kaber at trash.net>
via 56156cda196154aa015b7df030a2a9bbf34f4fcc (commit)
from 430bbc782ea034c6314a00a841f737560a56717c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 56156cda196154aa015b7df030a2a9bbf34f4fcc
Author: Jirí Moravec <jim.lkml at gmail.com>
Date: Wed Oct 22 08:57:38 2008 +0200
libxt_TOS: fix compilation error
Fix compilation error caused by double definition of IPPROTO_SCTP:
In file included from /usr/include/netinet/ip.h:25,
from /usr/include/linux/ip.h:19,
from tos_values.c:4,
from libxt_TOS.c:15:
/usr/include/netinet/in.h:84: error: expected identifier before numeric constant
make[2]: *** [libxt_TOS.oo] Error 1
Signed-off-by: Patrick McHardy <kaber at trash.net>
-----------------------------------------------------------------------
extensions/libxt_TOS.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
Fix compilation error caused by double definition of IPPROTO_SCTP:
In file included from /usr/include/netinet/ip.h:25,
from /usr/include/linux/ip.h:19,
from tos_values.c:4,
from libxt_TOS.c:15:
/usr/include/netinet/in.h:84: error: expected identifier before numeric constant
make[2]: *** [libxt_TOS.oo] Error 1
Signed-off-by: Patrick McHardy <kaber at trash.net>
diff --git a/extensions/libxt_TOS.c b/extensions/libxt_TOS.c
index 9ce8473..55a7172 100644
--- a/extensions/libxt_TOS.c
+++ b/extensions/libxt_TOS.c
@@ -8,6 +8,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <netinet/in.h>
#include <xtables.h>
#include <linux/netfilter/xt_DSCP.h>
More information about the netfilter-cvslog
mailing list