From 5e8eaa5f9755a6c8ed73ae0e49d399ac2dd3217c Mon Sep 17 00:00:00 2001 From: def Date: Tue, 24 Feb 2015 23:39:08 +0100 Subject: [PATCH] Use faster walkDir on BSDs --- lib/pure/os.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/os.nim b/lib/pure/os.nim index f668e756db..bf581667bd 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -1301,7 +1301,7 @@ iterator walkDir*(dir: string): tuple[kind: PathComponent, path: string] {. y = dir / y var k = pcFile - when defined(linux) or defined(macosx): + when defined(linux) or defined(macosx) or defined(bsd): if x.d_type != DT_UNKNOWN: if x.d_type == DT_DIR: k = pcDir if x.d_type == DT_LNK: k = succ(k)