diff options
author | odaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-03 13:54:54 +0000 |
---|---|---|
committer | odaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-03 13:54:54 +0000 |
commit | fadd0160d0a4ac46af821c118f068d3fd806b990 (patch) | |
tree | 3ed2fea2e1d54ff759961a2105a6561ad2e157f1 /ext/-test-/file/fs.c | |
parent | 9a2c3fd65e9937f2bf3aa9bfdd5b9e5605fd7642 (diff) | |
download | ruby-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/fs.c')
-rw-r--r-- | ext/-test-/file/fs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/-test-/file/fs.c b/ext/-test-/file/fs.c index f0be84ad3b..d3fa5350e5 100644 --- a/ext/-test-/file/fs.c +++ b/ext/-test-/file/fs.c @@ -10,6 +10,9 @@ #ifdef HAVE_SYS_VFS_H #include <sys/vfs.h> #endif +#ifdef HAVE_SYS_STATVFS_H +#include <sys/statvfs.h> +#endif #if defined HAVE_STRUCT_STATFS_F_FSTYPENAME typedef struct statfs statfs_t; |