freebsd-dev/tools/build/cross-build
Jessica Clarke 9e5b0d9eac cross-build: Fix bmake bootstrap with glibc 2.34
As of glibc 2.34, our unistd.h wrapper's inclusion of stdlib.h exposes
fragility in glibc's sys/wait.h and corresponding part of stdlib.h,
leading to "error: use of undeclared identifier 'WNOHANG'" and similar
errors when bootstrapping bmake.

Work around this by wrapping sys/wait.h to force stdlib.h's inclusion
first before it's implicitly included during the problematic window in
sys/wait.h.

MFC after:	1 week
2021-12-15 05:52:13 +00:00
..
fake_chflags Add necessary Makefile.inc1 infrastructure for building on non-FreeBSD 2020-08-25 13:29:57 +00:00
include cross-build: Fix bmake bootstrap with glibc 2.34 2021-12-15 05:52:13 +00:00
mkimg
capsicum_stubs.c Fix warnings during bootstrap on Linux systems 2021-01-07 09:30:50 +00:00
closefrom.c Add missing FreeBSD functions to -legacy when building on macOS/Linux 2020-08-25 13:23:31 +00:00
date.sh
fake_sysctl.c Fix warnings during bootstrap on Linux systems 2021-01-07 09:30:50 +00:00
fflags.c Fix warnings during bootstrap on Linux systems 2021-01-07 09:30:50 +00:00
fgetln_fallback.c Add missing FreeBSD functions to -legacy when building on macOS/Linux 2020-08-25 13:23:31 +00:00
fgetwln_fallback.c Add missing FreeBSD functions to -legacy when building on macOS/Linux 2020-08-25 13:23:31 +00:00
hostname.sh
local-link.h Add missing FreeBSD functions to -legacy when building on macOS/Linux 2020-08-25 13:23:31 +00:00
Makefile
progname.c Add missing FreeBSD functions to -legacy when building on macOS/Linux 2020-08-25 13:23:31 +00:00