osx: support nanosecond resolution for file stat (eg getLastModificationTime) (#12794)

This commit is contained in:
Timothee Cour 2019-12-04 01:12:55 -06:00 • committed by Andreas Rumpf
commit 3383985c44
2 changed files with 7 additions and 2 deletions

View file

@ -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