From ee2e4c1d4e191e54f32298df90dcf4ca2d054ea5 Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Sat, 17 Jun 2006 18:42:07 +0000 Subject: [PATCH] Fix the !INET6 compile. Reported by: alc --- sys/netinet/tcp_syncache.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 979a77ea3e3f..87d865040b10 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -797,8 +797,10 @@ syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th, struct syncache_head *sch; struct mbuf *ipopts = NULL; u_int32_t flowtmp; - int win, autoflowlabel = 0; - int sb_hiwat, ip_ttl, ip_tos; + int win, sb_hiwat, ip_ttl, ip_tos; +#ifdef INET6 + int autoflowlabel = 0; +#endif INP_INFO_WLOCK_ASSERT(&tcbinfo); INP_LOCK_ASSERT(inp); /* listen socket */