Commit ab88cc20 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 1257224: Windows-specific modules are missing in Makefile.PL

r=dylan
parent 33689864
......@@ -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 };
......
......@@ -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, }, }, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment