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
F103308628: D45354.diff
Sat, Nov 23, 9:10 AM
Unknown Object (File)
Thu, Nov 21, 7:16 AM
Unknown Object (File)
Wed, Nov 20, 9:02 AM
Unknown Object (File)
Fri, Nov 15, 6:07 AM
Unknown Object (File)
Fri, Nov 15, 3:40 AM
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
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