Skip to content

Commit

Permalink
fixes #23844; Nim devel nightly i386 build failing (#23849)
Browse files Browse the repository at this point in the history
fixes #23844
follow up #23834

```nim
type
  Timespec* {.importc: "struct timespec",
               header: "<time.h>", final, pure.} = object ## struct timespec
    tv_sec*: Time  ## Seconds.
    tv_nsec*: clong  ## Nanoseconds.
```
  • Loading branch information
ringabout authored Jul 17, 2024
1 parent ad5b5e3 commit 9de74b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/osproc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ elif not defined(useNimRtl):
waitSpec: TimeSpec
unused: Timespec
waitSpec.tv_sec = posix.Time(secs)
waitSpec.tv_nsec = ns
waitSpec.tv_nsec = clong ns
discard posix.clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, waitSpec, unused)
let remaining = deadline - getMonoTime()
delay = min([delay * 2, remaining, maxWait])
Expand Down

0 comments on commit 9de74b7

Please sign in to comment.