Fix crossbuild bootstrap tools build with Clang 12Clang 12 no longer allows re-defining a weak symbol as non-weak. Thishapped here because we compile err.c with _err defined to err. To fixthis, u
Fix crossbuild bootstrap tools build with Clang 12Clang 12 no longer allows re-defining a weak symbol as non-weak. Thishapped here because we compile err.c with _err defined to err. To fixthis, use the same approach as the libc namespace.h(cherry picked from commit 02af91c52e71e8a0f47251e637c9687f35d45dd9)
show more ...
Add missing FreeBSD functions to -legacy when building on macOS/LinuxIn most cases this simply builds the file from lib/libc for missingfunctions (e.g. strlcpy on Linux etc.). In cases where this
Add missing FreeBSD functions to -legacy when building on macOS/LinuxIn most cases this simply builds the file from lib/libc for missingfunctions (e.g. strlcpy on Linux etc.). In cases where this is not possibleI've added an implementation to tools/build/cross-build.The fgetln.c/fgetwln.c/closefrom.c compatibility code was obtained fromhttps://gitlab.freedesktop.org/libbsd/libbsd, but I'm not sure it makessense to import it into to contrib just for these three bootstrap files.Reviewed By: brooksDifferential Revision: https://reviews.freebsd.org/D25978