diff options
Diffstat (limited to 'lib/ExtUtils/MM.pm')
-rw-r--r-- | lib/ExtUtils/MM.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/ExtUtils/MM.pm b/lib/ExtUtils/MM.pm index e592bb829f..6fa2354a62 100644 --- a/lib/ExtUtils/MM.pm +++ b/lib/ExtUtils/MM.pm @@ -48,7 +48,13 @@ $Is{VMS} = $^O eq 'VMS'; $Is{OS2} = $^O eq 'os2'; $Is{MacOS} = $^O eq 'MacOS'; if( $^O eq 'MSWin32' ) { - Win32::IsWin95() ? $Is{Win95} = 1 : $Is{Win32} = 1; + if (defined &DynaLoader::boot_DynaLoader) { + Win32::IsWin95() ? $Is{Win95} = 1 : $Is{Win32} = 1; + } + else { + # Can't use Win32::* with miniperl + !(defined $ENV{SYSTEMROOT}) ? $Is{Win95} = 1 : $Is{Win32} = 1; + } } $Is{UWIN} = $^O =~ /^uwin(-nt)?$/; $Is{Cygwin} = $^O eq 'cygwin'; |