From d5d60a503f6de8866be843b40fe6de7c20a0f3a0 Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Wed, 12 Dec 2018 14:08:15 -0500 Subject: Speed up UTC mktime by using library timegm if available instead of our slow implementation. --- protos.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'protos.h') diff --git a/protos.h b/protos.h index 5693a43b..4dd4a221 100644 --- a/protos.h +++ b/protos.h @@ -129,6 +129,10 @@ extern void tzset(); extern time_t mktime(struct tm *tp); #endif +#ifndef HAVE_TIMEGM +extern time_t timegm(struct tm *); +#endif + #ifndef HAVE_SNPRINTF extern int snprintf(char *restrict buf, size_t len, const char *restrict fmt, ...); #endif -- cgit v1.2.3