summary refs log tree commit diff stats
path: root/lib/posix
diff options
context:
space:
mode:
authorReimer Behrends <behrends@gmail.com>2015-03-22 03:54:19 +0100
committerReimer Behrends <behrends@gmail.com>2015-03-22 03:54:19 +0100
commitf5f89f388d3ae762061ec5a501e0f34a0035c023 (patch)
tree022b824a925a12915cbea62884158a95c489c2d7 /lib/posix
parentca6906d85b168ce15626573d1001dec0239d2277 (diff)
downloadNim-f5f89f388d3ae762061ec5a501e0f34a0035c023.tar.gz
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.
Diffstat (limited to 'lib/posix')
-rw-r--r--lib/posix/posix.nim2
1 files changed, 1 insertions, 1 deletions
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: "<dirent.h>", 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.