git: 4acf9ba16de3 - stable/14 - netinet: fix LINT-NOINET build failure

From: Jessica Clarke <jrtc27_at_FreeBSD.org>
Date: Sat, 07 Sep 2024 01:48:11 UTC
The branch stable/14 has been updated by jrtc27:

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

commit 4acf9ba16de3ed0e1157539fbb59b138a49ee77d
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2024-08-26 20:02:25 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2024-09-07 00:52:31 +0000

    netinet: fix LINT-NOINET build failure
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    
    (cherry picked from commit 3b62f3350017ab6722ebe8e4fccd9ba76acbb214)
---
 sys/netinet/in_pcb.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 897a3ef991d5..28cd64ccbde6 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -236,11 +236,13 @@ in_pcbhashseed_init(void)
 VNET_SYSINIT(in_pcbhashseed_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_FIRST,
     in_pcbhashseed_init, 0);
 
+#ifdef INET
 VNET_DEFINE_STATIC(int, connect_inaddr_wild) = 1;
 #define	V_connect_inaddr_wild	VNET(connect_inaddr_wild)
 SYSCTL_INT(_net_inet_ip, OID_AUTO, connect_inaddr_wild,
     CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(connect_inaddr_wild), 0,
     "Allow connecting to INADDR_ANY or INADDR_BROADCAST for connect(2)");
+#endif
 
 static void in_pcbremhash(struct inpcb *);