diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-03-22 08:55:18 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-03-22 08:55:18 +0100 |
commit | 2942375e86afae6c79c63a2b17cb02a1c01ffebf (patch) | |
tree | 022b824a925a12915cbea62884158a95c489c2d7 /lib/posix/posix.nim | |
parent | ca6906d85b168ce15626573d1001dec0239d2277 (diff) | |
parent | f5f89f388d3ae762061ec5a501e0f34a0035c023 (diff) | |
download | Nim-2942375e86afae6c79c63a2b17cb02a1c01ffebf.tar.gz |
Merge pull request #2381 from rbehrends/fix-dirent-def
Fixed Tdirent definition for OS X and BSD.
Diffstat (limited to 'lib/posix/posix.nim')
-rw-r--r-- | lib/posix/posix.nim | 2 |
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. |