git: c25ea7290efd - stable/15 - tools.build: also add sys/_visible.h to SYSINCS

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

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

commit c25ea7290efd9d4609ecfed5780f524907653a3a
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2025-12-26 23:07:53 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2025-12-29 12:15:00 +0000

    tools.build: also add sys/_visible.h to SYSINCS
    
    This is needed since sys/cdefs.h includes sys/_visible.h.
    
    Reported by:    kib
    Fixes:          1c9ff80f0635
    MFC after:      3 days
    
    (cherry picked from commit 086bedb11a853801e82234b8a1a64f0df52d9e52)
---
 tools/build/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/build/Makefile b/tools/build/Makefile
index e057f0b6c400..9fcd458c370c 100644
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -349,6 +349,7 @@ 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/_visible.h
 SYSINCS+=	${SRCTOP}/sys/sys/cdefs.h
 
 # Needed to build config (since it uses libnv)