Page MenuHomeFreeBSD

cross-build: string.h uses mode_t, so we need sys/types.h
ClosedPublic

Authored by imp on May 24 2024, 9:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 25, 6:06 PM
Unknown Object (File)
Wed, Sep 17, 11:34 PM
Unknown Object (File)
Sep 14 2025, 6:48 AM
Unknown Object (File)
Sep 13 2025, 3:28 PM
Unknown Object (File)
Sep 11 2025, 9:28 AM
Unknown Object (File)
Sep 10 2025, 9:00 PM
Unknown Object (File)
Sep 9 2025, 6:20 PM
Unknown Object (File)
Sep 6 2025, 6:03 PM
Subscribers
None

Details

Summary

string.h defines strmode with a mode_t argument. POSIX states that one
must include sys/types.h to get mode_t, so do that here. This makes musl
happier. We know that sys/types.h will include sys/cdefs.h, so just
replace the latter with the former.

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