]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1257224: Windows-specific modules are missing in Makefile.PL
authorFrédéric Buclin <LpSolit@gmail.com>
Fri, 25 Mar 2016 21:30:54 +0000 (22:30 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Fri, 25 Mar 2016 21:30:54 +0000 (22:30 +0100)
r=dylan

Bugzilla/Constants.pm
Makefile.PL

index 6e8a469c5d458a02383e01d7d880b270fceab13e..80bf255df246da120e6e37f3fdcb9e961a62ff5f 100644 (file)
@@ -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 };
 
index 3880acaff2fef03f754d7c0840b3799339ae0839..062a94754391e32a4b1d4cf93e6f81f672cf6c34 100644 (file)
@@ -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, }, }, },