[PATCH] Change time_t to 64-bit by default

Corinna Vinschen vinschen@redhat.com
Thu Sep 7 13:00:00 GMT 2017


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20170907/274dd266/attachment.sig>


More information about the Newlib mailing list