git: 086bedb11a85 - main - tools.build: also add sys/_visible.h to SYSINCS

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 26 Dec 2025 23:11:29 UTC
The branch main has been updated by dim:

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

commit 086bedb11a853801e82234b8a1a64f0df52d9e52
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2025-12-26 23:07:53 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2025-12-26 23:11:17 +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
---
 tools/build/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/build/Makefile b/tools/build/Makefile
index 2c6237c4dd7d..8017d776fd55 100644
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -353,6 +353,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)