mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -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";
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user