mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
libc: Fix build on case-insensitive file systems
On case-insensitive file systems (most likely to be seen on macOS, where it is the default), _Fork.o for the new POSIX _Fork function conflicts with _fork.o for the PSEUDO file. This results in non-determinsitic behaviour in terms of which ends up being present; if _Fork.o wins then the build fails to link libc.so due to missing __sys_fork, and if _fork.o wins then libc silently fails to include the implementation of _Fork. A similar issue occurred in the past for C99's _Exit conflicting with exit(2) and was fixed incb1cb6a2a8
, so this adds a fix based on that. As a longer-term solution it might be better to instead make the generated files use a different prefix that's less likely to conflict with other things (such as __sys_foo.o given they always contain that) but that's a rather more invasive change. Fixes:49ad342cc1
("Add _Fork()") Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D31895
This commit is contained in:
parent
1f290c707a
commit
877175a17a
|
@ -49,7 +49,7 @@ SRCS+= closefrom.c
|
|||
SRCS+= pipe.c
|
||||
SRCS+= shm_open.c
|
||||
SRCS+= vadvise.c
|
||||
SRCS+= _Fork.c
|
||||
SRCS+= POSIX2x_Fork.c
|
||||
|
||||
SRCS+= compat-stub.c
|
||||
|
||||
|
|
Loading…
Reference in a new issue