mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
file.c: birthtime on Windows
* file.c (stat_birthtime): `ctime` is actually `created time` on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
35cd72172c
commit
bfa4f32069
1 changed files with 1 additions and 0 deletions
1
file.c
1
file.c
|
@ -791,6 +791,7 @@ stat_birthtime(struct stat *st)
|
||||||
return rb_time_nano_new(ts->tv_sec, ts->tv_nsec);
|
return rb_time_nano_new(ts->tv_sec, ts->tv_nsec);
|
||||||
}
|
}
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
|
# define stat_birthtime stat_ctime
|
||||||
#else
|
#else
|
||||||
# undef HAVE_STAT_BIRTHTIME
|
# undef HAVE_STAT_BIRTHTIME
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue