diff options
Diffstat (limited to 'ext/pathname/pathname.c')
-rw-r--r-- | ext/pathname/pathname.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c index d5e58c52d8..9cf6c32039 100644 --- a/ext/pathname/pathname.c +++ b/ext/pathname/pathname.c @@ -512,7 +512,7 @@ path_atime(VALUE self) return rb_funcall(rb_cFile, id_atime, 1, get_strpath(self)); } -#if defined(HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC) || defined(_WIN32) +#if defined(HAVE_RB_FILE_S_BIRTHTIME) /* * call-seq: * pathname.birthtime -> time @@ -528,6 +528,7 @@ path_birthtime(VALUE self) return rb_funcall(rb_cFile, id_birthtime, 1, get_strpath(self)); } #else +/* check at compilation time for `respond_to?` */ # define path_birthtime rb_f_notimplement #endif |