Fixed VC `fstat` issue.

parent cfaaf7c6
...@@ -395,7 +395,7 @@ static mrb_value ...@@ -395,7 +395,7 @@ static mrb_value
mrb_file_mtime(mrb_state *mrb, mrb_value self) mrb_file_mtime(mrb_state *mrb, mrb_value self)
{ {
int fd = mrb_io_fileno(mrb, self); int fd = mrb_io_fileno(mrb, self);
struct stat st; mrb_stat st;
if (mrb_fstat(fd, &st) == -1) if (mrb_fstat(fd, &st) == -1)
return mrb_false_value(); return mrb_false_value();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment