mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 07:40:27 +00:00
POSIX requires tzset(), but NuttX declared and defined it only with CONFIG_LIBC_LOCALTIME, so programs that call it do not build without that option. Without CONFIG_LIBC_LOCALTIME there are no time zones and local time is UTC, so tzset() has nothing to do. Declare tzset() always, and add an empty one for builds without CONFIG_LIBC_LOCALTIME. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| lib_asctime.c | ||
| lib_asctimer.c | ||
| lib_calendar2utc.c | ||
| lib_ctime.c | ||
| lib_ctimer.c | ||
| lib_dayofweek.c | ||
| lib_daysbeforemonth.c | ||
| lib_difftime.c | ||
| lib_gethrtime.c | ||
| lib_gettimeofday.c | ||
| lib_gmtime.c | ||
| lib_gmtimer.c | ||
| lib_isleapyear.c | ||
| lib_localtime.c | ||
| lib_nanosleep.c | ||
| lib_settimeofday.c | ||
| lib_strftime.c | ||
| lib_strptime.c | ||
| lib_time.c | ||
| lib_timegm.c | ||
| lib_timespec_get.c | ||
| lib_tzset.c | ||
| Make.defs | ||