diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2016-03-25 22:30:54 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2016-03-25 22:30:54 +0100 |
commit | ab88cc202fcfd78088338c378d2f02515838331e (patch) | |
tree | 6b4c819d53f93c1b9d67da78c0612fb9c0130d3c | |
parent | 3368986490028be41351d4329fb4976df2eb75e1 (diff) | |
download | bugzilla-ab88cc202fcfd78088338c378d2f02515838331e.tar.gz bugzilla-ab88cc202fcfd78088338c378d2f02515838331e.tar.xz |
Bug 1257224: Windows-specific modules are missing in Makefile.PL
r=dylan
-rw-r--r-- | Bugzilla/Constants.pm | 2 | ||||
-rw-r--r-- | Makefile.PL | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 6e8a469c5..80bf255df 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -524,7 +524,7 @@ use constant DB_MODULE => { }; # True if we're on Win32. -use constant ON_WINDOWS => ($^O =~ /MSWin32/i) ? 1 : 0; +use constant ON_WINDOWS => $^O eq 'MSWin32' ? 1 : 0; # True if we're using ActiveState Perl (as opposed to Strawberry) on Windows. use constant ON_ACTIVESTATE => eval { &Win32::BuildNumber }; diff --git a/Makefile.PL b/Makefile.PL index 3880acaff..062a94754 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -61,6 +61,13 @@ my %requires = ( 'URI' => '1.55', ); +# Windows requires some additional modules. +if ($^O eq 'MSWin32') { + $requires{'Win32'} = '0.35'; + $requires{'Win32::API'} = '0.55'; + $requires{'DateTime::TimeZone::Local::Win32'} = '1.64'; +} + my %optional_features = ( features => { prereqs => { runtime => { requires => { 'CPAN::Meta::Check' => 0, 'Module::Runtime' => 0, 'CPAN::Meta' => 0, }, }, }, |