diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-02-17 16:18:42 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-06-15 10:42:11 -0300 |
commit | fad1df51cc268da240a87986777834e43d419f94 (patch) | |
tree | c44c0ef586b3b9f609f6ead238bdca0f62861afe /time | |
parent | 4a30a71401db8844c548ae16809284f7138df02e (diff) | |
download | glibc-fad1df51cc268da240a87986777834e43d419f94.tar.gz glibc-fad1df51cc268da240a87986777834e43d419f94.tar.xz glibc-fad1df51cc268da240a87986777834e43d419f94.zip |
y2038: Add __USE_TIME_BITS64 support for time_t
The __USE_TIME_BITS64 is not defined internally yet. Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'time')
-rw-r--r-- | time/bits/types/time_t.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/time/bits/types/time_t.h b/time/bits/types/time_t.h index ab8287c6fe..84d67f6ac3 100644 --- a/time/bits/types/time_t.h +++ b/time/bits/types/time_t.h @@ -4,6 +4,10 @@ #include <bits/types.h> /* Returned by `time'. */ +#ifdef __USE_TIME_BITS64 +typedef __time64_t time_t; +#else typedef __time_t time_t; +#endif #endif |