mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-01-18 23:31:13 +00:00
Fix posix_gettimeofday compilation error.
This commit is contained in:
parent
570467a306
commit
f614223d40
@ -22,8 +22,11 @@ when defined(windows):
|
||||
|
||||
elif defined(macosx):
|
||||
|
||||
from posix import posix_gettimeofday, Timeval
|
||||
from posix import Timeval
|
||||
|
||||
proc posix_gettimeofday(tp: var Timeval, unused: pointer = nil) {.
|
||||
importc: "gettimeofday", header: "<sys/time.h>".}
|
||||
|
||||
proc fastEpochTime*(): uint64 {.inline.} =
|
||||
var t: Timeval
|
||||
posix_gettimeofday(t)
|
||||
|
Loading…
x
Reference in New Issue
Block a user