summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-09-11 13:40:06 +0100
committerSteve Hay <SteveHay@planit.com>2009-09-11 14:20:43 +0100
commitfc49d04a36bc948b50da6259c0a6c10f8acb6dd0 (patch)
treef9da2f4cfe6165137332caacb03f77a0c810bcc8
parentffde7796c71438bd9fa148cea309617217fd3982 (diff)
downloadperl-fc49d04a36bc948b50da6259c0a6c10f8acb6dd0.tar.gz
Fix test in Cwd for presence of DynaLoader.
Stops EU-MM's miniperl.t blowing up at the END when trying to load Win32 in the course of an rmtree() call. Fixes: Subject: Re: Smoke [5.11.0] blead-2228-gc6c613e FAIL(F) MSWin32 Win2000 SP4 Message-ID: <20090911092103.GS60303@plum.flirble.org>
-rw-r--r--lib/Cwd.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Cwd.pm b/lib/Cwd.pm
index 4618f94a86..3a0fda3406 100644
--- a/lib/Cwd.pm
+++ b/lib/Cwd.pm
@@ -171,7 +171,7 @@ use strict;
use Exporter;
use vars qw(@ISA @EXPORT @EXPORT_OK $VERSION);
-$VERSION = '3.30';
+$VERSION = '3.3001';
my $xs_version = $VERSION;
$VERSION = eval $VERSION;
@@ -748,7 +748,7 @@ sub _os2_cwd {
}
sub _win32_cwd {
- if (defined &DynaLoader::boot_DynaLoader) {
+ if (eval 'defined &DynaLoader::boot_DynaLoader') {
$ENV{'PWD'} = Win32::GetCwd();
}
else { # miniperl