mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 19:45:04 -05:00
gettimeofday() requires perl version newer than 5.6
This commit is contained in:
parent
7603a29fc3
commit
414180b363
@ -44,7 +44,7 @@ require "getpart.pm";
|
|||||||
require "ftp.pm";
|
require "ftp.pm";
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
if($] >= 5.006) {
|
if($] > 5.006) {
|
||||||
use Time::HiRes qw( gettimeofday );
|
use Time::HiRes qw( gettimeofday );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -71,7 +71,7 @@ sub getlogfilename {
|
|||||||
#
|
#
|
||||||
sub logmsg {
|
sub logmsg {
|
||||||
my $now;
|
my $now;
|
||||||
if($] >= 5.006) {
|
if($] > 5.006) {
|
||||||
my ($seconds, $usec) = gettimeofday();
|
my ($seconds, $usec) = gettimeofday();
|
||||||
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
|
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
|
||||||
localtime($seconds);
|
localtime($seconds);
|
||||||
|
Loading…
Reference in New Issue
Block a user