lib: posix: set default of POSIX_C_LANG_SUPPORT_R

enable POSIX_C_LANG_SUPPORT_R by default if
the functions are already provided by the toolchain.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
Fin Maaß 2024-12-09 12:15:14 +01:00 committed by Benjamin Cabé
commit 0418771902

View file

@ -9,6 +9,7 @@ config POSIX_C_LANG_SUPPORT_R
select COMMON_LIBC_CTIME_R if ! TC_PROVIDES_POSIX_C_LANG_SUPPORT_R
select COMMON_LIBC_GMTIME_R if ! TC_PROVIDES_POSIX_C_LANG_SUPPORT_R
select COMMON_LIBC_LOCALTIME_R_UTC if ! TC_PROVIDES_POSIX_C_LANG_SUPPORT_R
default y if TC_PROVIDES_POSIX_C_LANG_SUPPORT_R
help
Select 'y' here and Zephyr will provide an implementation of the POSIX_C_LANG_SUPPORT_R
Option Group, consisting of asctime_r(), ctime_r(), gmtime_r(), localtime_r(), rand_r(),