summaryrefslogtreecommitdiff
path: root/protos.h
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2018-12-12 14:08:15 -0500
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2018-12-12 14:08:15 -0500
commitd5d60a503f6de8866be843b40fe6de7c20a0f3a0 (patch)
tree90a217238b5b5c08536829c177ccaf339b1a13c3 /protos.h
parentc856f5c96f88cc8a5aacf6ee90e92ed80bd8c3ba (diff)
downloadgawk-d5d60a503f6de8866be843b40fe6de7c20a0f3a0.tar.gz
Speed up UTC mktime by using library timegm if available instead of our slow implementation.
Diffstat (limited to 'protos.h')
-rw-r--r--protos.h4
1 files changed, 4 insertions, 0 deletions
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