HomeFreeBSD

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

Description

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

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
Reviewed by: val_packett.cool
Differential Revision: https://reviews.freebsd.org/D45352

Details

Provenance
impAuthored on May 26 2024, 5:39 PM
Reviewer
val_packett.cool
Differential Revision
D45352: cross-build: Include sys/types.h from sys/param.h
Parents
rG4300e053618f: build: Include sys/cdefs.h in our fcntl.h shim
Branches
Unknown
Tags
Unknown