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

@ -48,7 +48,7 @@ type
# DragonflyBSD doesn't have `d_reclen` field.
d_type*: uint8
elif defined(linux) or defined(macosx) or defined(freebsd) or
defined(netbsd) or defined(openbsd):
defined(netbsd) or defined(openbsd) or defined(genode):
d_reclen*: cshort ## Length of this record. (not POSIX)
d_type*: int8 ## Type of file; not supported by all filesystem types.
## (not POSIX)

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: