summaryrefslogtreecommitdiff
path: root/ext/File/Glob/Glob.pm
diff options
context:
space:
mode:
Diffstat (limited to 'ext/File/Glob/Glob.pm')
-rw-r--r--ext/File/Glob/Glob.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/File/Glob/Glob.pm b/ext/File/Glob/Glob.pm
index da331b1be7..b843a167c2 100644
--- a/ext/File/Glob/Glob.pm
+++ b/ext/File/Glob/Glob.pm
@@ -84,7 +84,7 @@ sub AUTOLOAD {
($constname = $AUTOLOAD) =~ s/.*:://;
my $val = constant($constname, @_ ? $_[0] : 0);
if ($! != 0) {
- if ($! =~ /Invalid/) {
+ if ($! =~ /Invalid/ || $!{EINVAL}) {
require AutoLoader;
$AutoLoader::AUTOLOAD = $AUTOLOAD;
goto &AutoLoader::AUTOLOAD;