2018-05-27
2018-05-27 14:29:00 by Marcus Comstedt <marcus@mc.pp.se>
-
06530d4c1841353dd48d9fd6b82241953586f9d3
(2 lines)
(+2/-0)
[
Show
| Annotate
]
Branch: master
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.
14: Inside #if undefined(_LARGEFILE_SOURCE)
#ifndef _LARGEFILE_SOURCE
# define _FILE_OFFSET_BITS 64
+ # define _TIME_BITS 64
# define _LARGEFILE_SOURCE
/* # define _LARGEFILE64_SOURCE 1 */ /* This one is for explicit 64bit. */
#endif