Page MenuHomeFreeBSD

cross-build: Define __*int*_t and include sys/cdefs.h
ClosedPublic

Authored by imp on May 24 2024, 9:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 1:55 AM
Unknown Object (File)
Thu, Nov 7, 4:13 AM
Unknown Object (File)
Tue, Nov 5, 3:18 PM
Unknown Object (File)
Wed, Oct 16, 11:42 AM
Unknown Object (File)
Oct 13 2024, 3:37 PM
Unknown Object (File)
Oct 11 2024, 11:20 PM
Unknown Object (File)
Oct 10 2024, 5:16 PM
Unknown Object (File)
Oct 8 2024, 8:48 PM
Subscribers
None

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable