diff options
Diffstat (limited to 'lib/ExtUtils/MM.pm')
-rw-r--r-- | lib/ExtUtils/MM.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ExtUtils/MM.pm b/lib/ExtUtils/MM.pm index 2f74088648..39e3b4d2ee 100644 --- a/lib/ExtUtils/MM.pm +++ b/lib/ExtUtils/MM.pm @@ -3,7 +3,7 @@ package ExtUtils::MM; use strict; use ExtUtils::MakeMaker::Config; -our $VERSION = '6.53_02'; +our $VERSION = '6.53_03'; require ExtUtils::Liblist; require ExtUtils::MakeMaker; @@ -44,8 +44,9 @@ away. sub _is_win95 { # miniperl might not have the Win32 functions available and we need # to run in miniperl. - return defined &Win32::IsWin95 ? Win32::IsWin95() - : ! defined $ENV{SYSTEMROOT}; + my $have_win32 = eval { require Win32 }; + return $have_win32 && defined &Win32::IsWin95 ? Win32::IsWin95() + : ! defined $ENV{SYSTEMROOT}; } my %Is = (); |