From 4de8754bac676fc7f29082ccf8281b1c73ce629e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 7 Sep 2017 08:24:22 +0200 Subject: Change time_t to 64-bit by default In order to avoid the year 2038 problem, define time_t to a signed integer with at least 64-bits. The type for time_t can be forced to long with the --enable-newlib-long-time_t configure option or with the _USE_LONG_TIME_T system configuration define. Signed-off-by: Sebastian Huber --- newlib/README | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'newlib/README') diff --git a/newlib/README b/newlib/README index 78f4de846..8c97e24aa 100644 --- a/newlib/README +++ b/newlib/README @@ -343,6 +343,12 @@ One feature can be enabled by specifying `--enable-FEATURE=yes' or disables the optimization and saves size of text and stack. Enabled by default. +`--enable-newlib-long-time_t' + Define time_t to long. On platforms with a 32-bit long type, this gives + raise to the year 2038 problem. The default type for time_t is a signed + 64-bit integer on most systems. + Disabled by default. + `--enable-multilib' Build many library versions. Enabled by default. -- cgit v1.2.3