Page MenuHomeFreeBSD

link_addr_test: use <cstddef>, not <sys/stddef.h>
ClosedPublic

Authored by ivy on May 6 2025, 8:34 AM.
Tags
None
Referenced Files
F162976667: D50189.id.diff
Sat, Jul 18, 8:49 PM
F162965075: D50189.id.diff
Sat, Jul 18, 6:33 PM
F162957630: D50189.id154927.diff
Sat, Jul 18, 4:55 PM
F162955361: D50189.id154924.diff
Sat, Jul 18, 4:29 PM
Unknown Object (File)
Fri, Jul 17, 7:03 AM
Unknown Object (File)
Sun, Jun 21, 1:41 AM
Unknown Object (File)
Fri, Jun 19, 3:33 AM
Unknown Object (File)
Jun 9 2026, 5:20 AM
Subscribers

Details

Summary

<cstddef> is the correct header; this fixes the GCC build.

Fixes: 757e973fb211 ("libc tests: add tests for link_addr(3) and link_ntoa(3)")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ivy requested review of this revision.May 6 2025, 8:34 AM
lib/libc/tests/net/link_addr_test.cc
23–24
36

any reason not to sort these?

sort the headers

i've separated the C headers from the C++ headers and sorted them separately; i
don't know if we have any existing style guidelines for that but it's how i
usually prefer to do it, otherwise you end up with a bunch of C headers
randomly sorted under 'c'.

I would have preferred not to split them, but no strong opinion either way.

This revision is now accepted and ready to land.May 6 2025, 2:35 PM