freebsd-dev/tools/build/cross-build
Jessica Clarke 8a1895a3fa tools/build/cross-build: Fix building libllvmminimal on Linux
There is a __used member in glibc's posix_spawn_file_actions_t in
spawn.h, so we must temporarily undefine __used when including it,
otherwise Support/Unix/Program.inc fails to build. This is based on
similar handling for __unused in other headers.

Fixes:		31ba4ce889 ("Allow bootstrapping llvm-tblgen on macOS and Linux")
MFC after:	1 week
2021-08-12 23:50:48 +01:00
..
fake_chflags Add necessary Makefile.inc1 infrastructure for building on non-FreeBSD 2020-08-25 13:29:57 +00:00
include tools/build/cross-build: Fix building libllvmminimal on Linux 2021-08-12 23:50:48 +01: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