Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/posix/options/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(GEN_DIR ${ZEPHYR_BINARY_DIR}/include/generated)

zephyr_syscall_header_ifdef(CONFIG_POSIX_TIMERS posix_clock.h)

if(CONFIG_POSIX_API)
if(CONFIG_POSIX_HEADERS_IN_DEFAULT_SEARCH_PATH)
zephyr_include_directories(${ZEPHYR_BASE}/include/zephyr/posix)
endif()

Expand Down
2 changes: 2 additions & 0 deletions lib/posix/options/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

menu "POSIX Options"

rsource "Kconfig.build"

rsource "Kconfig.profile"

rsource "Kconfig.aio"
Expand Down
12 changes: 12 additions & 0 deletions lib/posix/options/Kconfig.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright (c) 2025 Tenstorrent AI ULC
#
# SPDX-License-Identifier: Apache-2.0

menu "POSIX build options"

config POSIX_HEADERS_IN_DEFAULT_SEARCH_PATH
bool "POSIX headers in default search path"
help
Select 'y' here and Zephyr's POSIX headers will be included in the default search path.

endmenu
1 change: 1 addition & 0 deletions lib/posix/options/Kconfig.profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config POSIX_API
select POSIX_BASE_DEFINITIONS # clock_gettime(), pthread_create(), sem_get(), etc
select POSIX_AEP_REALTIME_MINIMAL # CLOCK_MONOTONIC, pthread_attr_setstack(), etc
select POSIX_NETWORKING if NETWORKING # inet_ntoa(), socket(), etc
select POSIX_HEADERS_IN_DEFAULT_SEARCH_PATH
imply EVENTFD # eventfd(), eventfd_read(), eventfd_write()
imply POSIX_FD_MGMT # open(), close(), read(), write()
imply POSIX_MESSAGE_PASSING # mq_open(), etc
Expand Down