Merge pull request #2381 from rbehrends/fix-dirent-def
Fixed Tdirent definition for OS X and BSD.
This commit is contained in:
commit
2942375e86
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ type
|
||||||
Tdirent* {.importc: "struct dirent",
|
Tdirent* {.importc: "struct dirent",
|
||||||
header: "<dirent.h>", final, pure.} = object ## dirent_t struct
|
header: "<dirent.h>", final, pure.} = object ## dirent_t struct
|
||||||
d_ino*: Tino ## File serial number.
|
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_off*: TOff ## Not an offset. Value that ``telldir()`` would return.
|
||||||
d_reclen*: cshort ## Length of this record. (not POSIX)
|
d_reclen*: cshort ## Length of this record. (not POSIX)
|
||||||
d_type*: int8 ## Type of file; not supported by all filesystem types.
|
d_type*: int8 ## Type of file; not supported by all filesystem types.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue