mirror of
https://github.com/apache/nuttx.git
synced 2026-09-23 07:14:28 +08:00
boards: sim: enable CONFIG_LIBC_LOCALTIME for sim:toybox
tzset() is unconditionally defined in libs/libc/time/lib_localtime.c, but its prototype in <time.h> is gated behind CONFIG_LIBC_LOCALTIME -- without it, Toybox's own tzset() calls (lib/xwrap.c, toys/posix/date.c) compile as implicit declarations instead. The stm32f4discovery:toybox defconfig already carries this option (see its own commit message); sim:toybox's was simply missing it. Signed-off-by: Alan C. Assis <acassis@gmail.com> Assisted-by: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
committed by
Xiang Xiao
parent
fdcd0ec317
commit
36bcebb9c4
@@ -48,6 +48,7 @@ CONFIG_LIBC_EXECFUNCS=y
|
||||
CONFIG_LIBC_LOCALE=y
|
||||
CONFIG_LIBC_LOCALE_CATALOG=y
|
||||
CONFIG_LIBC_LOCALE_GETTEXT=y
|
||||
CONFIG_LIBC_LOCALTIME=y
|
||||
CONFIG_LIBC_MAX_EXITFUNS=1
|
||||
CONFIG_LIBC_NUMBERED_ARGS=y
|
||||
CONFIG_NDEBUG=y
|
||||
|
||||
Reference in New Issue
Block a user