Skip to content
Commit 269729a5 authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Anas Nashif
Browse files

net: socket: fix `sys/_timespec.h` not found error



When building `native_sim` with CPP & POSIX enabled, the
POSIX's `unistd.h` header causes a compilation error as
`sys/_timespec.h` doesn't exist in host gcc lib.

Remove the 'zephyr/posix' prefix, and rely on
`CMakeLists.txt`s to do the routing accordingly:
- zephyr/lib/CMakeLists.txt:L11
- zephyr/lib/posix/options/CMakeLists.txt:L8

Signed-off-by: default avatarYong Cong Sin <ycsin@meta.com>
parent 67544a6d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment