зеркало из https://github.com/github/ruby.git
* file.c: Change AND condition to nested condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
ad528e85c6
Коммит
2957f88f8f
|
@ -1,3 +1,7 @@
|
|||
Thu May 1 22:19:34 2014 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* file.c: Change AND condition to nested condition.
|
||||
|
||||
Thu May 1 00:36:26 2014 Naohisa Goto <ngotogenome@gmail.com>
|
||||
|
||||
* file.c (FSTATFS): check availability of struct statfs and
|
||||
|
|
11
file.c
11
file.c
|
@ -72,6 +72,9 @@ int flock(int, int);
|
|||
#ifdef HAVE_STRUCT_STATFS
|
||||
typedef struct statfs statfs_t;
|
||||
#define STATFS(f, s) statfs((f), (s))
|
||||
# ifdef HAVE_FSTATFS
|
||||
# define FSTATFS(f, s) fstatfs((f), (s))
|
||||
# endif
|
||||
#ifdef HAVE_STRUCT_STATFS_F_FSTYPENAME
|
||||
#define HAVE_STRUCT_STATFS_T_F_FSTYPENAME 1
|
||||
#endif
|
||||
|
@ -81,6 +84,9 @@ typedef struct statfs statfs_t;
|
|||
#elif defined(HAVE_STRUCT_STATVFS)
|
||||
typedef struct statvfs statfs_t;
|
||||
#define STATFS(f, s) statvfs((f), (s))
|
||||
# ifdef HAVE_FSTATVFS
|
||||
# define FSTATFS(f, s) fstatvfs((f), (s))
|
||||
# endif
|
||||
#ifdef HAVE_STRUCT_STATVFS_F_FSTYPENAME
|
||||
#define HAVE_STRUCT_STATFS_T_F_FSTYPENAME 1
|
||||
#endif
|
||||
|
@ -92,11 +98,6 @@ typedef struct statvfs statfs_t;
|
|||
#endif
|
||||
#ifndef WITHOUT_STATFS
|
||||
static VALUE rb_statfs_new(const statfs_t *st);
|
||||
#if defined(HAVE_FSTATFS) && defined(HAVE_STRUCT_STATFS)
|
||||
#define FSTATFS(f, s) fstatfs((f), (s))
|
||||
#elif defined(HAVE_FSTATVFS) && defined(HAVE_STRUCT_STATVFS)
|
||||
#define FSTATFS(f, s) fstatvfs((f), (s))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__native_client__) && defined(NACL_NEWLIB)
|
||||
|
|
Загрузка…
Ссылка в новой задаче