summaryrefslogtreecommitdiff
path: root/lib/Autom4te/FileUtils.pm
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-03-29 12:59:09 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2023-03-29 17:19:08 -0700
commite2220ed33e69d8bc6504e3f6279894afe33a99a5 (patch)
tree5ce139c68e79b84c52c15cd67d3dbb44e4939290 /lib/Autom4te/FileUtils.pm
parent5ffc09fca39de051537fbebd7c6c33d5255a520f (diff)
downloadautoconf-e2220ed33e69d8bc6504e3f6279894afe33a99a5.tar.gz
build: run "make fetch", which updated these:
* build-aux/texinfo.tex: Update from texinfo. * lib/Autom4te/FileUtils.pm: Update from automake.
Diffstat (limited to 'lib/Autom4te/FileUtils.pm')
-rw-r--r--lib/Autom4te/FileUtils.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Autom4te/FileUtils.pm b/lib/Autom4te/FileUtils.pm
index ab58b9de..2468fe6d 100644
--- a/lib/Autom4te/FileUtils.pm
+++ b/lib/Autom4te/FileUtils.pm
@@ -39,9 +39,12 @@ use strict;
use warnings FATAL => 'all';
use Exporter;
-use Time::HiRes qw(stat);
use IO::File;
+# use sub-second resolution timestamps if available,
+# carry on with one-second resolution timestamps if that is all we have
+BEGIN { eval { require Time::HiRes; import Time::HiRes qw(stat) } }
+
use Autom4te::Channels;
use Autom4te::ChannelDefs;