From 5dbe8f0a915c25666dd9c760775f619c34a51538 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Thu, 12 Apr 2018 21:11:12 +1000 Subject: [PATCH] (perl #133030) make utime() available only if we have both fd and name setting --- dist/Time-HiRes/Makefile.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/Time-HiRes/Makefile.PL b/dist/Time-HiRes/Makefile.PL index e0f7dd9a2f..daca5b4f60 100644 --- a/dist/Time-HiRes/Makefile.PL +++ b/dist/Time-HiRes/Makefile.PL @@ -731,7 +731,7 @@ EOD print "NOT found.\n"; } - my $has_hires_utime = ($has_futimens || $has_utimensat); + my $has_hires_utime = ($has_futimens && $has_utimensat); if ($has_hires_utime) { $DEFINE .= ' -DTIME_HIRES_UTIME'; print "You seem to have subsecond timestamp setting.\n"; -- 2.15.1-424-g9478a660812