git: c2a808b977dd - main - Fix kernel build after fcb3f813f379f544f9cd2a10d18045588da0e132 .

From: Hans Petter Selasky <hselasky_at_FreeBSD.org>
Date: Tue, 04 Oct 2022 13:59:02 UTC
The branch main has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=c2a808b977dd61c0d69d878cd1bef6b016114d14

commit c2a808b977dd61c0d69d878cd1bef6b016114d14
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2022-10-04 13:55:15 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2022-10-04 13:55:36 +0000

    Fix kernel build after fcb3f813f379f544f9cd2a10d18045588da0e132 .
    
    By adding missing ifdefs for INET6 .
    
    Differential Revision:  https://reviews.freebsd.org/D36731
    Sponsored by:   NVIDIA Networking
---
 sys/netinet/tcp_subr.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 1e47b7896e6e..a1df6677d226 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -133,8 +133,10 @@ __FBSDID("$FreeBSD$");
 
 #include <security/mac/mac_framework.h>
 
+#ifdef INET6
 static ip6proto_ctlinput_t tcp6_ctlinput;
 static udp_tun_icmp_t tcp6_ctlinput_viaudp;
+#endif
 
 VNET_DEFINE(int, tcp_mssdflt) = TCP_MSS;
 #ifdef INET6