aboutsummaryrefslogtreecommitdiff
path: root/include/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/time.h')
-rw-r--r--include/time.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h
index 97d17c171a..e3afd6ed03 100644
--- a/include/time.h
+++ b/include/time.h
@@ -94,6 +94,20 @@ struct __itimerspec64
#endif
#if __TIMESIZE == 64
+# define __timeval64 timeval
+#else
+/* The glibc Y2038-proof struct __timeval64 structure for a time value.
+ This structure is NOT supposed to be passed to the Linux kernel.
+ Instead, it shall be converted to struct __timespec64 and time shall
+ be [sg]et via clock_[sg]ettime (which are now Y2038 safe). */
+struct __timeval64
+{
+ __time64_t tv_sec; /* Seconds */
+ __suseconds64_t tv_usec; /* Microseconds */
+};
+#endif
+
+#if __TIMESIZE == 64
# define __ctime64 ctime
#else
extern char *__ctime64 (const __time64_t *__timer) __THROW;