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
F102637048: D45353.diff
Fri, Nov 15, 4:01 AM
Unknown Object (File)
Sat, Nov 2, 3:23 PM
Unknown Object (File)
Sun, Oct 27, 4:12 PM
Unknown Object (File)
Sep 23 2024, 2:20 PM
Unknown Object (File)
Sep 3 2024, 1:08 PM
Unknown Object (File)
Aug 24 2024, 8:41 PM
Unknown Object (File)
Aug 24 2024, 2:25 PM
Unknown Object (File)
Aug 19 2024, 4:14 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 57907
Build 54795: arc lint + arc unit