git: 17be774ee710 - main - stand: unistd.h is no longer safe

From: Warner Losh <imp_at_FreeBSD.org>
Date: Wed, 20 Nov 2024 03:35:51 UTC
The branch main has been updated by imp:

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

commit 17be774ee710d0727a7a45f823356fa33c207058
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-11-20 03:19:13 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-11-20 03:35:04 +0000

    stand: unistd.h is no longer safe
    
    unistd.h includes too much extra stuff for the boot loader. This creates
    a fair amount of namespace pollution and it's best to just make it an
    alias for stand.h like the other include files already are.
    
    Sponsored by:           Netflix
---
 stand/libsa/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stand/libsa/Makefile b/stand/libsa/Makefile
index 3d46b9c7ffa1..603fee71e84a 100644
--- a/stand/libsa/Makefile
+++ b/stand/libsa/Makefile
@@ -200,8 +200,8 @@ MAN=libsa.3
 # Create a subset of includes that are safe, as well as adjusting those that aren't
 # The lists may drive people nuts, but they are explicitly opt-in
 FAKE_DIRS=xlocale arpa ssp
-SAFE_INCS=a.out.h assert.h elf.h inttypes.h limits.h nlist.h setjmp.h stddef.h stdbool.h string.h strings.h time.h unistd.h uuid.h
-STAND_H_INC=ctype.h fcntl.h signal.h stdio.h stdlib.h
+SAFE_INCS=a.out.h assert.h elf.h inttypes.h limits.h nlist.h setjmp.h stddef.h stdbool.h string.h strings.h time.h uuid.h
+STAND_H_INC=ctype.h fcntl.h signal.h stdio.h stdlib.h unistd.h
 OTHER_INC=stdarg.h errno.h stdint.h
 
 beforedepend: