From bfa4f32069a3ca8f0c50a71d8efba0ecfe6f05df Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 22 May 2014 14:34:54 +0000 Subject: [PATCH] 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 --- file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/file.c b/file.c index 2305066970..e6a225747d 100644 --- a/file.c +++ b/file.c @@ -791,6 +791,7 @@ stat_birthtime(struct stat *st) return rb_time_nano_new(ts->tv_sec, ts->tv_nsec); } #elif defined(_WIN32) +# define stat_birthtime stat_ctime #else # undef HAVE_STAT_BIRTHTIME #endif