Page MenuHomeFreeBSD

cross-tools: Document a rather bizarre looking construct
ClosedPublic

Authored by imp on May 24 2024, 9:07 PM.
Tags
None
Referenced Files
F145416103: D45350.id139061.diff
Thu, Feb 19, 2:04 PM
Unknown Object (File)
Wed, Feb 18, 11:26 AM
Unknown Object (File)
Sun, Feb 8, 10:12 AM
Unknown Object (File)
Fri, Jan 30, 10:10 PM
Unknown Object (File)
Fri, Jan 30, 1:19 PM
Unknown Object (File)
Fri, Jan 30, 1:19 PM
Unknown Object (File)
Sun, Jan 25, 5:39 PM
Unknown Object (File)
Sun, Jan 25, 3:36 PM
Subscribers
None

Details

Summary

On Linux, stddef.h will define size_t to something when size_t is
defined. On FreeBSD,
size_t is an actual typedef which we need for
other parts of the system. If size_t isn't defined, that tells us we
need to define the fallback
size_t typedef (if it is defined, then we
can't easily redefine it without issues because glob.h will define it to
something different than stddef.h defines it). Add a comment to this
effect.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57904
Build 54792: arc lint + arc unit