Skip to content

Commit 06c55fe

Browse files
committed
tools/build: stage cdefs.h on MidnightBSD hosts
Include sys/sys/cdefs.h in the legacy header set when bootstrapping on MidnightBSD so host tools that pull in sys/font.h also see __nonstring. AI-Assisted-by: OpenAI Codex (GPT-5) Signed-off-by: Lucas Holt <luke@foolishgames.com>
1 parent 1e9e1fa commit 06c55fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/build/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ MSDOSFSINCS+= ${SRCTOP}/sys/fs/msdosfs/fat.h
231231
MSDOSFSINCS+= ${SRCTOP}/sys/fs/msdosfs/msdosfsmount.h
232232
DISKINCS+= ${SRCTOP}/sys/sys/disk/bsd.h
233233

234-
.if ${.MAKE.OS} == "FreeBSD"
234+
.if ${.MAKE.OS} == "FreeBSD" || ${.MAKE.OS} == "MidnightBSD"
235235
# Needed to build most of the things below, which include sys/cdefs.h either
236236
# directly or transitively
237237
SYSINCS+= ${SRCTOP}/sys/sys/cdefs.h

0 commit comments

Comments
 (0)