git: 50c02805f671 - stable/13 - tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Mon, 29 Dec 2025 12:18:07 UTC
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=50c02805f6711b16a4315ed1bc736a372539604f

commit 50c02805f6711b16a4315ed1bc736a372539604f
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2025-12-26 15:26:13 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2025-12-29 12:16:49 +0000

    tools.build: add sys/cdefs.h to SYSINCS, since lots of other headers use it
    
    This is needed to let the legacy stage compile against newer versions of
    sys/font.h, which transitively includes sys/cdefs.h, and requires the
    new __nonstring macro from it.
    
    Fixes:          e2c93ed09f25
    MFC after:      3 days
    
    (cherry picked from commit 1c9ff80f06350fa44b7e50ce09ad665ab0082abb)
---
 tools/build/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/build/Makefile b/tools/build/Makefile
index 990aee424db9..d08406516362 100644
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -231,6 +231,10 @@ MSDOSFSINCS+=	${SRCTOP}/sys/fs/msdosfs/fat.h
 MSDOSFSINCS+=	${SRCTOP}/sys/fs/msdosfs/msdosfsmount.h
 DISKINCS+=	${SRCTOP}/sys/sys/disk/bsd.h
 
+# Needed to build most of the things below, which include sys/cdefs.h either
+# directly or transitively
+SYSINCS+=	${SRCTOP}/sys/sys/cdefs.h
+
 # Needed to build config (since it uses libnv)
 SYSINCS+=	${SRCTOP}/sys/sys/nv.h ${SRCTOP}/sys/sys/cnv.h \
 		${SRCTOP}/sys/sys/dnv.h