git: 0e2ce866278b - main - ipfw: don't build the module if INET not in kernel

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sat, 25 May 2024 04:25:10 UTC
The branch main has been updated by imp:

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

commit 0e2ce866278bdaf0764db4578f5793283dd9afa4
Author:     Lexi Winter <lexi@le-Fay.ORG>
AuthorDate: 2024-05-24 00:32:49 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-05-25 04:21:24 +0000

    ipfw: don't build the module if INET not in kernel
    
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/1255
---
 sys/modules/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index ad274e7f7b47..54108097fe1d 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -490,7 +490,7 @@ _sctp=		sctp
 _if_stf=	if_stf
 .endif
 
-.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
+.if (${KERN_OPTS:MINET} && ${MK_INET_SUPPORT} != "no") || defined(ALL_MODULES)
 _if_me=		if_me
 _ipfw=		ipfw
 .if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES)