diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | file.c | 4 |
2 files changed, 8 insertions, 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. @@ -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 |