diff --git a/lib/posix/posix_other.nim b/lib/posix/posix_other.nim index 8213f796c7..94087df992 100644 --- a/lib/posix/posix_other.nim +++ b/lib/posix/posix_other.nim @@ -32,7 +32,12 @@ type SocketHandle* = distinct cint # The type used to represent socket descriptors type - Time* {.importc: "time_t", header: "".} = distinct clong + Time* {.importc: "time_t", header: "".} = distinct ( + when defined(nimUse64BitCTime): + int64 + else: + clong + ) Timespec* {.importc: "struct timespec", header: "", final, pure.} = object ## struct timespec