Skip to content

Commit 274ad46

Browse files
nashifAnas Nashif
authored and
Anas Nashif
committed
kernel: move posix header to posix/
Having posix headers in the default include path causes issues with the posix port. Move to a sub-directory to avoid any conflicts. Signed-off-by: Anas Nashif <[email protected]>
1 parent 5146dbb commit 274ad46

File tree

3 files changed

+2
-0
lines changed

3 files changed

+2
-0
lines changed
File renamed without changes.

kernel/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ add_library(kernel
2424
work_q.c
2525
)
2626

27+
target_include_directories(kernel PRIVATE ${PROJECT_SOURCE_DIR}/include/posix)
2728
target_sources_ifdef(CONFIG_INT_LATENCY_BENCHMARK kernel PRIVATE int_latency_bench.c)
2829
target_sources_ifdef(CONFIG_STACK_CANARIES kernel PRIVATE compiler_stack_protect.c)
2930
target_sources_ifdef(CONFIG_SYS_CLOCK_EXISTS kernel PRIVATE timer.c)

tests/kernel/pthread/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
22
project(NONE)
33

4+
target_include_directories(app PRIVATE $ENV{ZEPHYR_BASE}/include/posix)
45
FILE(GLOB app_sources src/*.c)
56
target_sources(app PRIVATE ${app_sources})

0 commit comments

Comments
 (0)