summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 014f3f73a6..bc657c186a 100644
--- a/eval.c
+++ b/eval.c
@@ -7017,7 +7017,8 @@ rb_provided(feature)
return Qfalse;
}
else if (IS_SOEXT(ext) || IS_DLEXT(ext)) {
- return Qfalse; /* may be overriden by .rb file */
+ if (rb_feature_p(feature, ext, Qfalse)) return Qtrue;
+ return Qfalse;
}
}
if (rb_feature_p(feature, feature + strlen(feature), Qtrue))