tests: posix: net: fix missing clock_t and clockid_t with newlib

Fix errors found in CI for missing clock_t and clockid_t types
when building the tests/posix/net testsuite.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
This commit is contained in:
Chris Friedt 2024-10-15 12:53:37 -04:00 committed by David Leach
commit 45b3010d74
3 changed files with 16 additions and 0 deletions

View file

@ -7,3 +7,5 @@ project(posix_net)
FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})
target_compile_options(app PRIVATE -U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=200809L)