git: 3d69387ece53 - main - tcp: improve NOINET builds

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Wed, 04 Mar 2026 14:20:27 UTC
The branch main has been updated by tuexen:

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

commit 3d69387ece535fc33821d089aab241bfb9551d69
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2026-03-04 14:18:58 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2026-03-04 14:18:58 +0000

    tcp: improve NOINET builds
    
    Reported by:    bz
    MFC after:      1 week
    Sponsored by:   Netflix, Inc.
---
 sys/netinet/tcp_subr.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index c759e9a1cd6b..8aa8a7b7fefc 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -341,8 +341,11 @@ static struct inpcb *tcp_drop_syn_sent(struct inpcb *, int);
 static char *	tcp_log_addr(struct in_conninfo *inc, struct tcphdr *th,
 		    const void *ip4hdr, const void *ip6hdr);
 static void	tcp_default_switch_failed(struct tcpcb *tp);
+
+#ifdef INET
 static ipproto_ctlinput_t	tcp_ctlinput;
 static udp_tun_icmp_t		tcp_ctlinput_viaudp;
+#endif
 
 static struct tcp_function_block tcp_def_funcblk = {
 	.tfb_tcp_block_name = "freebsd",