Skip to content

Commit

Permalink
kernel: move posix header to posix/
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
nashif authored and Anas Nashif committed Dec 27, 2017
1 parent 5146dbb commit 274ad46
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions kernel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions tests/kernel/pthread/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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})

0 comments on commit 274ad46

Please sign in to comment.