diff --git a/include/pthread.h b/include/posix/pthread.h similarity index 100% rename from include/pthread.h rename to include/posix/pthread.h diff --git a/kernel/CMakeLists.txt b/kernel/CMakeLists.txt index 9c7fd979dd01..07ae850605ca 100644 --- a/kernel/CMakeLists.txt +++ b/kernel/CMakeLists.txt @@ -24,6 +24,7 @@ add_library(kernel work_q.c ) +target_include_directories(kernel PRIVATE ${PROJECT_SOURCE_DIR}/include/posix) target_sources_ifdef(CONFIG_INT_LATENCY_BENCHMARK kernel PRIVATE int_latency_bench.c) target_sources_ifdef(CONFIG_STACK_CANARIES kernel PRIVATE compiler_stack_protect.c) target_sources_ifdef(CONFIG_SYS_CLOCK_EXISTS kernel PRIVATE timer.c) diff --git a/tests/kernel/pthread/CMakeLists.txt b/tests/kernel/pthread/CMakeLists.txt index 92a4288bc1d8..1f0f8897775d 100644 --- a/tests/kernel/pthread/CMakeLists.txt +++ b/tests/kernel/pthread/CMakeLists.txt @@ -1,5 +1,6 @@ include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) project(NONE) +target_include_directories(app PRIVATE $ENV{ZEPHYR_BASE}/include/posix) FILE(GLOB app_sources src/*.c) target_sources(app PRIVATE ${app_sources})