summaryrefslogtreecommitdiff
path: root/win32/FindExt.pm
diff options
context:
space:
mode:
Diffstat (limited to 'win32/FindExt.pm')
-rw-r--r--win32/FindExt.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/FindExt.pm b/win32/FindExt.pm
index 62429a57a3..b42b68a9e9 100644
--- a/win32/FindExt.pm
+++ b/win32/FindExt.pm
@@ -76,7 +76,10 @@ sub is_static
# NOTE: recursion limit of 10 to prevent runaway in case of symlink madness
sub find_ext
{
- for my $xxx (glob "*") {
+ opendir my $dh, '.';
+ my @items = grep { !/^\.\.?$/ } readdir $dh;
+ closedir $dh;
+ for my $xxx (@items) {
if ($xxx ne "DynaLoader") {
if (-f "$xxx/$xxx.xs") {
$ext{"$_[0]$xxx"} = $static{"$_[0]$xxx"} ? 'static' : 'dynamic';