biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / misc / autoconf / 2.71-fix-race.patch
blobe3b28554352be84d880c7bb7fa6c2a23672c9aa2
1 https://savannah.gnu.org/support/index.php?110521
2 https://git.savannah.gnu.org/cgit/autoconf.git/patch/?id=3a9802d60156809c139e9b4620bf04917e143ee2
3 --- a/lib/Autom4te/FileUtils.pm
4 +++ b/lib/Autom4te/FileUtils.pm
5 @@ -34,12 +34,12 @@ This perl module provides various general purpose file handling functions.
7 =cut
9 -use 5.006;
10 +use 5.008;
11 use strict;
12 use warnings FATAL => 'all';
14 use Exporter;
15 -use File::stat;
16 +use Time::HiRes qw(stat);
17 use IO::File;
19 use Autom4te::Channels;
20 @@ -115,10 +115,11 @@ sub mtime ($)
21 return 0
22 if $file eq '-' || ! -f $file;
24 - my $stat = stat ($file)
25 + my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
26 + $atime,$mtime,$ctime,$blksize,$blocks) = stat ($file)
27 or fatal "cannot stat $file: $!";
29 - return $stat->mtime;
30 + return $mtime;
34 --
35 cgit v1.2.1