mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Do not define mrb_lstat unless S_ISLNK is defined.
This commit is contained in:
@@ -66,11 +66,13 @@ mrb_stat(mrb_state *mrb, mrb_value obj, struct stat *st)
|
||||
return mrb_stat0(mrb, obj, st, 0);
|
||||
}
|
||||
|
||||
#ifdef S_ISLNK
|
||||
static int
|
||||
mrb_lstat(mrb_state *mrb, mrb_value obj, struct stat *st)
|
||||
{
|
||||
return mrb_stat0(mrb, obj, st, 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Document-method: directory?
|
||||
|
||||
Reference in New Issue
Block a user