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