diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-04 08:20:05 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-04 08:20:05 +0000 |
commit | 8d9b300a72ec3de3b88aae973661be347df7a028 (patch) | |
tree | 37a7f79815daead701b5fe9bcaf8e1e0abea9de5 /lib | |
parent | 171a14b36cf61a1aae127d3b73b1aedd0657ab01 (diff) | |
download | ruby-8d9b300a72ec3de3b88aae973661be347df7a028.tar.gz |
dir.c: glob cases on case-insensitive system
* dir.c (glob_helper): return the filename with actual cases on
the filesystem if it is case-insensitive. [ruby-core:42469]
[Feature #5994]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 3f88fe3f04..88084554f4 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -71,7 +71,7 @@ module MakeMakefile # Extensions for files complied with a C++ compiler CXX_EXT = %w[cc mm cxx cpp] - if File::FNM_SYSCASE.zero? + unless File.exist?(File.join(*File.split(__FILE__).tap {|d, b| b.swapcase})) CXX_EXT.concat(%w[C]) end |