From 85d4109a0d17b2a5d543b3e422c3b65457394638 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Fri, 14 Jul 2017 09:43:42 -0500 Subject: [PATCH] Genode readdir fix (#6080) The Genode readdir is inherited from then FreeBSD libc. --- lib/posix/posix_other.nim | 2 +- lib/pure/os.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/posix/posix_other.nim b/lib/posix/posix_other.nim index b1cc244b7..1d50f2bac 100644 --- a/lib/posix/posix_other.nim +++ b/lib/posix/posix_other.nim @@ -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) diff --git a/lib/pure/os.nim b/lib/pure/os.nim index f7bcfb60e..2195f6327 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -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: