This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Change time_t to 64-bit by default


Hi Sebastian,

On Sep  7 09:20, Sebastian Huber wrote:
> 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>
> ---
>  newlib/README                         |  6 ++++++
>  newlib/configure                      | 26 ++++++++++++++++++++++++--
>  newlib/configure.in                   | 15 +++++++++++++++
>  newlib/libc/include/sys/_types.h      |  6 +++++-
>  newlib/libc/include/sys/config.h      |  6 ++++++
>  newlib/newlib.hin                     |  3 +++
>  winsup/cygwin/include/cygwin/config.h |  1 +
>  7 files changed, 60 insertions(+), 3 deletions(-)

Your patch is fine, but aren't we missing a preliminary patch to the
time functions as discussed in
https://sourceware.org/ml/newlib/2017/msg00772.html first?


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]