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)
Thu, Feb 19, 7:11 AM
Unknown Object (File)
Thu, Feb 19, 7:11 AM
Unknown Object (File)
Wed, Feb 18, 2:34 PM
Unknown Object (File)
Jan 24 2026, 10:24 AM
Unknown Object (File)
Jan 24 2026, 7:21 AM
Unknown Object (File)
Jan 13 2026, 9:41 PM
Unknown Object (File)
Jan 1 2026, 12:57 AM
Unknown Object (File)
Dec 28 2025, 1:03 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