Fix Windows strftime reference
This commit is contained in:
parent
914a796ce1
commit
77863ae150
|
@ -118,6 +118,7 @@ use XML::Simple;
|
|||
use HTML::Entities;
|
||||
use Time::Local;
|
||||
use Time::HiRes qw(time);
|
||||
eval "use POSIX::strftime::GNU;1" if ($^O =~ /win/i);
|
||||
use POSIX qw(strftime);
|
||||
use threads;
|
||||
use threads::shared;
|
||||
|
|
|
@ -27,6 +27,7 @@ use Thread::Semaphore;
|
|||
use Time::Local;
|
||||
use XML::Parser::Expat;
|
||||
use XML::Simple;
|
||||
eval "use POSIX::strftime::GNU;1" if ($^O =~ /win/i);
|
||||
use POSIX qw(setsid strftime);
|
||||
use IO::Uncompress::Unzip;
|
||||
use JSON qw(decode_json);
|
||||
|
|
|
@ -22,6 +22,7 @@ use Socket qw(inet_ntoa inet_aton);
|
|||
use File::Copy;
|
||||
use Scalar::Util qw(looks_like_number);
|
||||
use Time::HiRes qw(time);
|
||||
eval "use POSIX::strftime::GNU;1" if ($^O =~ /win/i);
|
||||
use POSIX qw(strftime setsid floor);
|
||||
use MIME::Base64;
|
||||
use JSON qw(decode_json encode_json);
|
||||
|
|
|
@ -19,6 +19,7 @@ package PandoraFMS::Tools;
|
|||
|
||||
use warnings;
|
||||
use Time::Local;
|
||||
eval "use POSIX::strftime::GNU;1" if ($^O =~ /win/i);
|
||||
use POSIX qw(setsid strftime);
|
||||
use POSIX;
|
||||
use HTML::Entities;
|
||||
|
|
Loading…
Reference in New Issue