aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-22 13:19:15 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-22 13:19:15 +0000
commit026b0b9469286d5166f7238351df0042fdbf4d9a (patch)
treeaf14fd04359280a6adda384eddb4cb515ac0ee3b /file.c
parent3b1862e62fc398126ab3a6ebb28b86cec728ffcc (diff)
downloadruby-026b0b9469286d5166f7238351df0042fdbf4d9a.tar.gz
* file.c (rb_io_statfs): need to define even if the system doesn't have
fstatfs(2). * test/ruby/test_file.rb (TestFile#test_statfs): skip if IO#stafs is not implemented. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file.c b/file.c
index 86839b15b3..e700478fdf 100644
--- a/file.c
+++ b/file.c
@@ -1125,6 +1125,8 @@ rb_io_statfs(VALUE obj)
}
return rb_statfs_new(&st);
}
+#else
+#define rb_io_statfs rb_f_notimplement
#endif
static int