Fix posix_gettimeofday compilation error.
This commit is contained in:
parent
570467a306
commit
f614223d40
|
@ -22,7 +22,10 @@ when defined(windows):
|
||||||
|
|
||||||
elif defined(macosx):
|
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.} =
|
proc fastEpochTime*(): uint64 {.inline.} =
|
||||||
var t: Timeval
|
var t: Timeval
|
||||||
|
|
Loading…
Reference in New Issue