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)
Sun, Oct 5, 9:15 PM
Unknown Object (File)
Fri, Oct 3, 6:37 PM
Unknown Object (File)
Wed, Oct 1, 6:25 AM
Unknown Object (File)
Sat, Sep 13, 3:02 PM
Unknown Object (File)
Fri, Sep 12, 10:14 PM
Unknown Object (File)
Sep 7 2025, 10:28 AM
Unknown Object (File)
Sep 6 2025, 11:22 AM
Unknown Object (File)
Sep 6 2025, 11:21 AM
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