Genode readdir fix (#6080)
The Genode readdir is inherited from then FreeBSD libc.
This commit is contained in:
parent
ca0155a458
commit
85d4109a0d
2 changed files with 2 additions and 2 deletions
|
|
@ -1017,7 +1017,7 @@ iterator walkDir*(dir: string; relative=false): tuple[kind: PathComponent, path:
|
|||
y = dir / y
|
||||
var k = pcFile
|
||||
|
||||
when defined(linux) or defined(macosx) or defined(bsd):
|
||||
when defined(linux) or defined(macosx) or defined(bsd) or defined(genode):
|
||||
if x.d_type != DT_UNKNOWN:
|
||||
if x.d_type == DT_DIR: k = pcDir
|
||||
if x.d_type == DT_LNK:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue