From fc79706a3233b02909b1a75b1e43e40915eb5a04 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 11 May 2018 16:30:30 +0200 Subject: time: Use 64-bit time values for time zone parsing --- include/time.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/time.h b/include/time.h index aab26d7768..23d2580528 100644 --- a/include/time.h +++ b/include/time.h @@ -26,6 +26,10 @@ extern __typeof (clock_getcpuclockid) __clock_getcpuclockid; /* Now define the internal interfaces. */ struct tm; +/* time_t variant for representing time zone data, independent of + time_t. */ +typedef __int64_t internal_time_t; + /* Defined in mktime.c. */ extern const unsigned short int __mon_yday[2][13] attribute_hidden; @@ -39,7 +43,7 @@ extern int __use_tzfile attribute_hidden; extern void __tzfile_read (const char *file, size_t extra, char **extrap) attribute_hidden; -extern void __tzfile_compute (time_t timer, int use_localtime, +extern void __tzfile_compute (internal_time_t timer, int use_localtime, long int *leap_correct, int *leap_hit, struct tm *tp) attribute_hidden; extern void __tzfile_default (const char *std, const char *dst, -- cgit v1.2.3