Branch: Tag:

2018-05-27

2018-05-27 14:29:00 by Marcus Comstedt <marcus@mc.pp.se>

Builtin: Use 64-bit version of time_t in future glibc

This functionality does not exist in mainline glibc yet, but the API
design can be found on the glibc wiki page
https://sourceware.org/glibc/wiki/Y2038ProofnessDesign
and a draft implementation exists on a branch.

3006:   AC_CHECK_SIZEOF(long, 4)   AC_CHECK_SIZEOF(long long, 0)   AC_CHECK_SIZEOF(__int64, 0) - AC_CHECK_SIZEOF(time_t, 4) + AC_CHECK_SIZEOF(time_t, 4, [ + #ifndef _LARGEFILE_SOURCE + # define _FILE_OFFSET_BITS 64 + # define _TIME_BITS 64 + # define _LARGEFILE_SOURCE + #endif + #if TIME_WITH_SYS_TIME + # include <sys/time.h> + # include <time.h> + #else + # if HAVE_SYS_TIME_H + # include <sys/time.h> + # else + # include <time.h> + # endif + #endif + ])   AC_CHECK_SIZEOF(__int128)   AC_CHECK_SIZEOF(__int128_t)   AC_CHECK_SIZEOF(unsigned __int128)