git: 0dd9c4abf0e5 - main - tools/build/Makefile: Always add md4.h to SYSINCS

From: Lexi Winter <ivy_at_FreeBSD.org>
Date: Thu, 09 Apr 2026 14:31:58 UTC
The branch main has been updated by ivy:

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

commit 0dd9c4abf0e56b9d4f6f7204a68b1475f2bbf1fc
Author:     Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2026-04-09 14:30:20 +0000
Commit:     Lexi Winter <ivy@FreeBSD.org>
CommitDate: 2026-04-09 14:30:20 +0000

    tools/build/Makefile: Always add md4.h to SYSINCS
    
    Since libmd was added to the bootstrap, building main on stable/14
    fails because of an incompatibility in its old md4.h.  Fix this by
    always including md4.h in the bootstrap headers, instead of only
    doing so when building on a non-FreeBSD host.
    
    Fixes:          50de0bf50512 ("flua: Always build as a bootstrap tool")
    Reported by:    olce
    Reviewed by:    olce, kevans
    Sponsored by:   https://www.patreon.com/bsdivy
    Differential Revision:  https://reviews.freebsd.org/D56327
---
 tools/build/Makefile | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tools/build/Makefile b/tools/build/Makefile
index 604885dea4c8..f0856900b281 100644
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -395,10 +395,8 @@ SYSINCS+=	${SRCTOP}/sys/sys/ctf.h
 SYSINCS+=	${SRCTOP}/sys/sys/kbio.h
 # for kldxref:
 SYSINCS+=	${SRCTOP}/sys/sys/module.h
-.if ${.MAKE.OS} != "FreeBSD"
 # for libmd:
 SYSINCS+=	${SRCTOP}/sys/sys/md4.h
-.endif
 
 # We want to run the build with only ${WORLDTMP} in $PATH to ensure we don't
 # accidentally run tools that are incompatible but happen to be in $PATH.