diff options
author | 2000-09-18 23:59:39 +0000 | |
---|---|---|
committer | 2000-09-18 23:59:39 +0000 | |
commit | ec2858a813060d49c07b744a20424d23b9816064 (patch) | |
tree | 2558c3016ec8a66f578628dfa34860cd88257cef /sys/netinet/tcp_input.c | |
parent | Path MTU discovery based on NetBSD but with the decision to use the DF (diff) | |
download | wireguard-openbsd-ec2858a813060d49c07b744a20424d23b9816064.tar.xz wireguard-openbsd-ec2858a813060d49c07b744a20424d23b9816064.zip |
fix compilation problem on systems w/o inet6.
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 7 |
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; |