summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-04-03 17:24:14 +0200
committerAndreas Rumpf <rumpf_a@web.de>2015-04-03 17:24:14 +0200
commit4b81d539a1b33da9037dc019614b45540237e9d0 (patch)
tree872624aa1f64d1c5ad41a8fd18a7475b58316dde
parenta5b4c427b441fd73fe77e5a68aaa0bc7d2fe4f2c (diff)
parentff75cf5c2c67b49659667eb7b9b37e12b244be0f (diff)
downloadNim-4b81d539a1b33da9037dc019614b45540237e9d0.tar.gz
Merge pull request #2441 from TheAnonymous/devel
fixes https://github.com/Araq/Nim/issues/2116
-rw-r--r--lib/posix/posix.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim
index 00b655a10..5c3190bf7 100644
--- a/lib/posix/posix.nim
+++ b/lib/posix/posix.nim
@@ -95,10 +95,11 @@ type
              header: "<dirent.h>", final, pure.} = object ## dirent_t struct
     d_ino*: Tino  ## File serial number.
     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.
                     ## (not POSIX)
+      when defined(linux) or defined(bsd):
+        d_off*: TOff  ## Not an offset. Value that ``telldir()`` would return.
     d_name*: array [0..255, char] ## Name of entry.
 
   Tflock* {.importc: "struct flock", final, pure,