diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-24 11:57:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-24 11:57:18 +0000 |
commit | 23a8183bea8dda2d7528b57f2e0c8bc31162db3e (patch) | |
tree | 8e64e549c56714f87ef0a65f4f80628ca7d4bf03 /file.c | |
parent | a582007e3611e1d6e1d57b697391be74dc03c2ac (diff) |
Check stx_btime in struct statx
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1114,9 +1114,10 @@ stat_without_gvl(const char *path, struct stat *st) RUBY_UBF_IO, NULL); } -#if !defined(HAVE_STAT_BIRTHTIME) && defined(HAVE_STATX) +#if !defined(HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC) && \ + defined(HAVE_STRUCT_STATX_STX_BTIME) -# if HAVE_STATX == 0 +# ifndef HAVE_STATX # ifdef HAVE_SYSCALL_H # include <syscall.h> # elif defined HAVE_SYS_SYSCALL_H @@ -2402,7 +2403,7 @@ rb_file_ctime(VALUE obj) * */ -#if defined(HAVE_STAT_BIRTHTIME) || defined(HAVE_STATX) +#if defined(HAVE_STAT_BIRTHTIME) RUBY_FUNC_EXPORTED VALUE rb_file_s_birthtime(VALUE klass, VALUE fname) { |