freebsd-dev/tools/build/cross-build
Jose Luis Duran 320e7e0003 Revert "Fix cross-build support for Ubuntu 16.04"
This reverts commit d6327ae8c1.

Before version 2.25, glibc's unistd.h would define the POSIX subset of
getopt.h by defining __need_getopt, including getopt.h (which would
disable the header guard) and then undefining it so later including
getopt.h explicitly would define the extensions. However, we wrap
getopt, and so the wrapper's #pragma once breaks that. Thus getopt.h was
included before the real unistd.h to ensure we get all the extensions.

However, with clang 12 that causes problems where we get a function
mismatch (since getopt can throw exceptions). If we include it after
unistd.h, it will get the full definitions since glibc no longer does
the subsetting thing. This will result in matching definitions and fix
clang 12.

Reviewed by: imp, jrtc27 (OK'd on irc)
Pull Request: https://github.com/freebsd/freebsd-src/pull/668
2023-03-07 16:11:11 -07:00
..
fake_chflags Add necessary Makefile.inc1 infrastructure for building on non-FreeBSD 2020-08-25 13:29:57 +00:00
include Revert "Fix cross-build support for Ubuntu 16.04" 2023-03-07 16:11:11 -07:00
mkimg
capsicum_stubs.c Fix warnings during bootstrap on Linux systems 2021-01-07 09:30:50 +00:00
closefrom.c
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
fgetwln_fallback.c
hostname.sh
local-link.h
Makefile
progname.c