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
F170721502: D45350.id139118.diff
Sun, Sep 6, 5:26 AM
F170716562: D45350.id.diff
Sun, Sep 6, 4:43 AM
F170702862: D45350.id139118.diff
Sun, Sep 6, 2:50 AM
Unknown Object (File)
Fri, Sep 4, 12:19 AM
Unknown Object (File)
Thu, Sep 3, 3:30 PM
Unknown Object (File)
Thu, Sep 3, 1:48 AM
Unknown Object (File)
Thu, Sep 3, 1:48 AM
Unknown Object (File)
Wed, Sep 2, 12:30 AM
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 Not Applicable
Unit
Tests Not Applicable