diff options
author | Warner Losh <imp@FreeBSD.org> | 2024-11-20 03:19:13 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2024-11-20 03:35:04 +0000 |
commit | 17be774ee710d0727a7a45f823356fa33c207058 (patch) | |
tree | 142eb787aa6034fb2b0c93ae1b89e5f15b177c6f | |
parent | 7255a2969ff9ed2763391c854d7c2bed71a1a1c8 (diff) | |
download | src-17be774ee710d0727a7a45f823356fa33c207058.tar.gz src-17be774ee710d0727a7a45f823356fa33c207058.zip |
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
-rw-r--r-- | stand/libsa/Makefile | 4 |
1 files 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: |