summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-09-18 23:59:40 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-09-18 23:59:40 +0000
commit34bf2590d4578a22d35167848ffe42a6d96c5c94 (patch)
treec18c5966b53e01e51b2b0a9742da4727084c3a92
parent90175ecf691a7934faa9072f3a1ed18f4e91deb3 (diff)
fix compilation problem on systems w/o inet6.
-rw-r--r--sys/netinet/tcp_input.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 3762fc8004c..d21db5f3f32 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.70 2000/09/18 22:06:38 provos Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.71 2000/09/18 23:59:39 fgsch Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -2750,7 +2750,10 @@ tcp_mss(tp, offer)
struct ifnet *ifp;
register int rtt, mss, mssopt;
u_long bufsize;
- int iphlen, is_ipv6 = 0;
+ int iphlen;
+#ifdef INET6
+ int is_ipv6 = 0;
+#endif
struct inpcb *inp;
struct socket *so;