public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/y2038-work] y2038: Add __USE_TIME_BITS64 support for struct timeval
@ 2021-02-18 23:58 Adhemerval Zanella
0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2021-02-18 23:58 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bf82b1bdd47653fba40411af27026bc155aefe24
commit bf82b1bdd47653fba40411af27026bc155aefe24
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Feb 17 16:19:23 2021 -0300
y2038: Add __USE_TIME_BITS64 support for struct timeval
The __USE_TIME_BITS64 is not defined internally yet.
Diff:
---
time/bits/types/struct_timeval.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/time/bits/types/struct_timeval.h b/time/bits/types/struct_timeval.h
index 70394ce886..3466137c35 100644
--- a/time/bits/types/struct_timeval.h
+++ b/time/bits/types/struct_timeval.h
@@ -7,7 +7,12 @@
microsecond but also has a range of years. */
struct timeval
{
+#ifdef __USE_TIME_BITS64
+ __time64_t tv_sec; /* Seconds. */
+ __suseconds64_t tv_usec; /* Microseconds. */
+#else
__time_t tv_sec; /* Seconds. */
__suseconds_t tv_usec; /* Microseconds. */
+#endif
};
#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-18 23:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18 23:58 [glibc/azanella/y2038-work] y2038: Add __USE_TIME_BITS64 support for struct timeval Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).