mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c (FSTATFS): check availability of struct statfs and
struct statvfs in addition to fstatfs(2) and fstatvfs(2). This fixes error in Solaris. [Bug #9788] [ruby-dev:48145] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
795a6b2374
commit
793d9c14df
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Thu May 1 00:36:26 2014 Naohisa Goto <ngotogenome@gmail.com>
|
||||
|
||||
* file.c (FSTATFS): check availability of struct statfs and
|
||||
struct statvfs in addition to fstatfs(2) and fstatvfs(2).
|
||||
This fixes error in Solaris. [Bug #9788] [ruby-dev:48145]
|
||||
|
||||
Wed Apr 30 19:46:23 2014 Narihiro Nakamura <authornari@gmail.com>
|
||||
|
||||
* gc.c (gc_after_sweep): suppress unnecessary expanding heap.
|
||||
|
|
4
file.c
4
file.c
|
@ -92,9 +92,9 @@ typedef struct statvfs statfs_t;
|
|||
#endif
|
||||
#ifndef WITHOUT_STATFS
|
||||
static VALUE rb_statfs_new(const statfs_t *st);
|
||||
#if defined(HAVE_FSTATFS)
|
||||
#if defined(HAVE_FSTATFS) && defined(HAVE_STRUCT_STATFS)
|
||||
#define FSTATFS(f, s) fstatfs((f), (s))
|
||||
#elif defined(HAVE_FSTATVFS)
|
||||
#elif defined(HAVE_FSTATVFS) && defined(HAVE_STRUCT_STATVFS)
|
||||
#define FSTATFS(f, s) fstatvfs((f), (s))
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue