Genode readdir fix (#6080)

The Genode readdir is inherited from then FreeBSD libc.
This commit is contained in:
Emery Hemingway 2017-07-14 09:43:42 -05:00 • committed by Andreas Rumpf
commit 85d4109a0d
2 changed files with 2 additions and 2 deletions

View file

@ -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: