diff options
| author | Warner Losh <imp@FreeBSD.org> | 2024-05-26 17:39:18 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2026-04-13 05:02:27 +0000 |
| commit | 0ccb63941591d8b9ec77b95d3a4dff11c784e2ad (patch) | |
| tree | bf0c01a4077017c1cdd0b59876d0060c6d6cfbb5 /sys/arm64/linux/linux_machdep.c | |
| parent | 9b7c0f4f81f06424899094d4381dede79669b623 (diff) | |
cross-build: Define __*int*_t and include sys/cdefs.hstable/14
FreeBSD assumes that sys/types.h includes sys/cdefs.h, so add it here.
FreeBSD also needs __*int*_t defined for software we bootstrap (a lot of
it). GLIBC defines these, but musl does not, so we have to define them
here, even though it looks backwards. There's no good #define to key off
of, so use !defined GLIBC since on Linux defacto there's only two libc
implementations.
Co-authored-by: Val Packett <val@packett.cool>
Sponsored by: Netflix
Pull Request: https://github.com/freebsd/freebsd-src/pull/1066
Reviewed by: val_packett.cool
Differential Revision: https://reviews.freebsd.org/D45354
(cherry picked from commit 3c5f0da5106bee21ab3726f608b5c377da92a733)
Diffstat (limited to 'sys/arm64/linux/linux_machdep.c')
0 files changed, 0 insertions, 0 deletions
