Page MenuHomeFreeBSD

cross-build: Include sys/types.h from sys/param.h
ClosedPublic

Authored by imp on May 24 2024, 9:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 5, 7:14 AM
Unknown Object (File)
Sat, Jun 21, 7:29 PM
Unknown Object (File)
Sat, Jun 21, 1:53 AM
Unknown Object (File)
Thu, Jun 19, 3:06 PM
Unknown Object (File)
Thu, Jun 19, 2:59 PM
Unknown Object (File)
Mon, Jun 9, 11:08 PM
Unknown Object (File)
May 6 2025, 6:09 PM
Unknown Object (File)
May 6 2025, 2:36 PM
Subscribers
None

Details

Summary

FreeBSD has a style(9) enforced assumption that sys/param.h includes
sys/types.h. However, Linux under musl doesn't do this so go ahead and
explicitly include it here. It won't hurt on the glibc systems, and
helps musl.

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