mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-01 00:45:29 +00:00
Define 'TZ_MAX_TIMES' as 1
This patch defines 'TZ_MAX_TIMES' as 1 when building 'localtime.c' to avoid a big stack allocation in the 'tzload()' function. Fixes #250.
This commit is contained in:
parent
d9d22fbf75
commit
ed58040794
@ -2,6 +2,8 @@ LIBC_STDTIME_DIR = $(LIBC_DIR)/libc/stdtime
|
||||
|
||||
SRC_C = $(filter-out $(FILTER_OUT),$(notdir $(wildcard $(LIBC_STDTIME_DIR)/*.c)))
|
||||
|
||||
CC_OPT_localtime = -DTZ_MAX_TIMES=1
|
||||
|
||||
include $(REP_DIR)/lib/mk/libc-common.inc
|
||||
|
||||
vpath %.c $(LIBC_STDTIME_DIR)
|
||||
|
Loading…
x
Reference in New Issue
Block a user