aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-22 14:34:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-22 14:34:54 +0000
commitbfa4f32069a3ca8f0c50a71d8efba0ecfe6f05df (patch)
tree91785a6a25bb14c63aaa5e2e890ec8478845ca72 /file.c
parent35cd72172ca642750a5aaa49e3bfd922bf4293be (diff)
downloadruby-bfa4f32069a3ca8f0c50a71d8efba0ecfe6f05df.tar.gz
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
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
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