Do not define `mrb_lstat` unless `S_ISLNK` is defined.

parent 925cd2ab
...@@ -66,11 +66,13 @@ mrb_stat(mrb_state *mrb, mrb_value obj, struct stat *st) ...@@ -66,11 +66,13 @@ mrb_stat(mrb_state *mrb, mrb_value obj, struct stat *st)
return mrb_stat0(mrb, obj, st, 0); return mrb_stat0(mrb, obj, st, 0);
} }
#ifdef S_ISLNK
static int static int
mrb_lstat(mrb_state *mrb, mrb_value obj, struct stat *st) mrb_lstat(mrb_state *mrb, mrb_value obj, struct stat *st)
{ {
return mrb_stat0(mrb, obj, st, 1); return mrb_stat0(mrb, obj, st, 1);
} }
#endif
/* /*
* Document-method: directory? * Document-method: directory?
......
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