aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-12 00:18:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-12 00:18:55 +0000
commita3dde7df529dc459cbe4f42df2a836652b3469be (patch)
treed5721b1aa093e36353d6239b4ee0a368082f6068
parent17fa2ce73a4ff6ba67dc92da5148b65ba3e3eeb5 (diff)
downloadruby-a3dde7df529dc459cbe4f42df2a836652b3469be.tar.gz
* lib/fileutils.rb (fu_have_st_ino): check if required method is
defined, instead of platform name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/fileutils.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f7b9c4f9cf..10698799f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Apr 12 09:18:53 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/fileutils.rb (fu_have_st_ino): check if required method is
+ defined, instead of platform name.
+
Mon Apr 12 05:10:20 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/matrix.rb: New method Matrix.build [ruby-core:28272]
diff --git a/lib/fileutils.rb b/lib/fileutils.rb
index 8c522ced55..bdf5a1048c 100644
--- a/lib/fileutils.rb
+++ b/lib/fileutils.rb
@@ -1437,7 +1437,7 @@ module FileUtils
private_module_function :fu_same?
def fu_have_st_ino? #:nodoc:
- not fu_windows?
+ File::Stat.method_defined?(:ino)
end
private_module_function :fu_have_st_ino?