From f5f89f388d3ae762061ec5a501e0f34a0035c023 Mon Sep 17 00:00:00 2001 From: Reimer Behrends Date: Sun, 22 Mar 2015 03:54:19 +0100 Subject: [PATCH] Fixed Tdirent definition for OS X and BSD. Entries d_type etc. were disabled on architectures other than Linux, but also used for OS X and BSD in os.nim. --- lib/posix/posix.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index ced966207..00b655a10 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -94,7 +94,7 @@ type Tdirent* {.importc: "struct dirent", header: "", final, pure.} = object ## dirent_t struct d_ino*: Tino ## File serial number. - when defined(linux): + when defined(linux) or defined(macosx) or defined(bsd): d_off*: TOff ## Not an offset. Value that ``telldir()`` would return. d_reclen*: cshort ## Length of this record. (not POSIX) d_type*: int8 ## Type of file; not supported by all filesystem types.