mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08: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