From 3454d8f727f913d0cdee3a7e521a71a25a017c75 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Wed, 31 May 2023 17:09:25 +0200 Subject: [PATCH] lib POSIX: Enable selectively for POSIX ARCH The POSIX API compatibility shim can be used for some of the POSIX ARCH targets. Narrow the Kconfig filtering accordingly. Note that the recommended configuration when building with the native simulator is still to use an embedded C library. Using the host C library will in some cases cause undesired behaviour. Signed-off-by: Alberto Escolar Piedras --- lib/posix/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/posix/Kconfig b/lib/posix/Kconfig index f857a49462..7f510210d9 100644 --- a/lib/posix/Kconfig +++ b/lib/posix/Kconfig @@ -12,7 +12,7 @@ config POSIX_MAX_FDS files, sockets, special devices, etc. config POSIX_API - depends on !ARCH_POSIX + depends on !NATIVE_APPLICATION bool "POSIX APIs" help Enable mostly-standards-compliant implementations of @@ -160,7 +160,7 @@ config APP_LINK_WITH_POSIX_SUBSYS config EVENTFD bool "Support for eventfd" - depends on !ARCH_POSIX + depends on !NATIVE_APPLICATION select POLL default y if POSIX_API help