diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-07 09:24:22 +0300 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-07 16:39:34 +0300 |
commit | 4de8754bac676fc7f29082ccf8281b1c73ce629e (patch) | |
tree | a45eb9f1ddbd801106e447cc645a8d34fd26ca36 /newlib/README | |
parent | ad45b86533a47ae33ec99cebc61aee96b57e17a5 (diff) |
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 <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib/README')
-rw-r--r-- | newlib/README | 6 |
1 files changed, 6 insertions, 0 deletions
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. |