osx: support nanosecond resolution for file stat (eg getLastModificationTime) (#12794)
This commit is contained in:
parent
01c7409924
commit
3383985c44
2 changed files with 7 additions and 2 deletions
|
|
@ -86,7 +86,7 @@ const
|
|||
type Sighandler = proc (a: cint) {.noconv.}
|
||||
|
||||
const StatHasNanoseconds* = defined(linux) or defined(freebsd) or
|
||||
defined(openbsd) or defined(dragonfly) ## \
|
||||
defined(osx) or defined(openbsd) or defined(dragonfly) ## \
|
||||
## Boolean flag that indicates if the system supports nanosecond time
|
||||
## resolution in the fields of ``Stat``. Note that the nanosecond based fields
|
||||
## (``Stat.st_atim``, ``Stat.st_mtim`` and ``Stat.st_ctim``) can be accessed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue