(perl #133030) make utime() available only if we have both fd and name setting blead
authorTony Cook <tony@develop-help.com>
Thu, 12 Apr 2018 11:11:12 +0000 (21:11 +1000)
committerTony Cook <tony@develop-help.com>
Thu, 26 Apr 2018 04:49:50 +0000 (14:49 +1000)
dist/Time-HiRes/Makefile.PL

index e0f7dd9..daca5b4 100644 (file)
@@ -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";