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 against newlib. Also use angle-brackets and prefixed path with `<zephyr/posix/posix_types.h>` since it is not in the default search path and is analagous to `<sys/types.h>`. Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
This commit is contained in:
parent
091c6664c5
commit
b302212c5a
10 changed files with 24 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue