summaryrefslogtreecommitdiff
path: root/replace.c
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 /replace.c
parentc856f5c96f88cc8a5aacf6ee90e92ed80bd8c3ba (diff)
downloadgawk-d5d60a503f6de8866be843b40fe6de7c20a0f3a0.tar.gz
Speed up UTC mktime by using library timegm if available instead of our slow implementation.
Diffstat (limited to 'replace.c')
-rw-r--r--replace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/replace.c b/replace.c
index db7f0893..ae069f5b 100644
--- a/replace.c
+++ b/replace.c
@@ -91,6 +91,10 @@
#include "missing_d/mktime.c"
#endif /* HAVE_MKTIME */
+#ifndef HAVE_TIMEGM
+#include "missing_d/timegm.c"
+#endif /* HAVE_TIMEGM */
+
#ifndef HAVE_SNPRINTF
#include "missing_d/snprintf.c"
#endif