[PATCH] sys/netinet/tcp_output.c compile fails on -CURRENT

Roop Nanuwa roop at hqst.com
Wed Feb 11 01:21:51 PST 2004


There were some changes made to sys/netinet/tcp_output.c
for revision 1.86. If you don't have TCP_SIGNATURE enabled
then the compile fails because there's a variable 'sigoff' that's
only used inside an #ifdef TCP_SIGNATURE block. If you don't
have it enabled then the compile fails because of the warning
that the variable sigoff is declared but never used. Patch
included to get around this.

(and as I finished typing this, the current tinderbox failure
messages are coming in :) )

--roop

--- sys/netinet/tcp_output.c.orig       Wed Feb 11 00:11:28 2004
+++ sys/netinet/tcp_output.c    Wed Feb 11 00:39:37 2004
@@ -116,7 +116,9 @@
        struct socket *so = tp->t_inpcb->inp_socket;
        long len, recwin, sendwin;
        int off, flags, error;
+#ifdef TCP_SIGNATURE
        int sigoff = 0;
+#endif
        struct mbuf *m;
        struct ip *ip = NULL;
        struct ipovly *ipov = NULL;




More information about the freebsd-current mailing list