aboutsummaryrefslogtreecommitdiffstats
path: root/ext/-test-/file/extconf.rb
diff options
context:
space:
mode:
authorodaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-03 13:54:54 +0000
committerodaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-03 13:54:54 +0000
commitfadd0160d0a4ac46af821c118f068d3fd806b990 (patch)
tree3ed2fea2e1d54ff759961a2105a6561ad2e157f1 /ext/-test-/file/extconf.rb
parent9a2c3fd65e9937f2bf3aa9bfdd5b9e5605fd7642 (diff)
downloadruby-fadd0160d0a4ac46af821c118f068d3fd806b990.tar.gz
* ext/-test-/file/fs.c: need to include sys/statvfs.h
to use statvfs(). * ext/-test-/file/extconf.rb: check the existence of sys/statvfs.h git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/file/extconf.rb')
-rw-r--r--ext/-test-/file/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/-test-/file/extconf.rb b/ext/-test-/file/extconf.rb
index be4a2fbdeb..87a2f4a205 100644
--- a/ext/-test-/file/extconf.rb
+++ b/ext/-test-/file/extconf.rb
@@ -6,7 +6,7 @@ if have_type("struct statfs", headers)
have_struct_member("struct statfs", "f_type", headers)
end
-headers = %w[sys/statvfs.h]
+headers = %w[sys/statvfs.h].select {|h| have_header(h)}
if have_type("struct statvfs", headers)
have_struct_member("struct statvfs", "f_fstypename", headers)
have_struct_member("struct statvfs", "f_basetype", headers)