1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

gettimeofday() requires perl version newer than 5.6

This commit is contained in:
Yang Tse 2009-12-17 03:50:32 +00:00
parent 7603a29fc3
commit 414180b363

View File

@ -44,7 +44,7 @@ require "getpart.pm";
require "ftp.pm";
BEGIN {
if($] >= 5.006) {
if($] > 5.006) {
use Time::HiRes qw( gettimeofday );
}
}
@ -71,7 +71,7 @@ sub getlogfilename {
#
sub logmsg {
my $now;
if($] >= 5.006) {
if($] > 5.006) {
my ($seconds, $usec) = gettimeofday();
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
localtime($seconds);