From b211b85ff41066aab846c5780543275a0a2884c5 Mon Sep 17 00:00:00 2001 From: yamt Date: Wed, 10 Aug 2005 13:07:21 +0000 Subject: [PATCH] wrap INET-only code by #if defined(INET). --- sys/netinet/tcp_output.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index 4164227b80fd..df92b169871f 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -1,4 +1,4 @@ -/* $NetBSD: tcp_output.c,v 1.138 2005/08/10 12:58:37 yamt Exp $ */ +/* $NetBSD: tcp_output.c,v 1.139 2005/08/10 13:07:21 yamt Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -140,7 +140,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.138 2005/08/10 12:58:37 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.139 2005/08/10 13:07:21 yamt Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -1577,6 +1577,7 @@ tcp_setpersist(struct tcpcb *tp) tp->t_rxtshift++; } +#if defined(INET) /* * tcp4_segment: handle M_CSUM_TSOv4 by software. * @@ -1702,3 +1703,4 @@ quit: return error; } +#endif /* defined(INET) */