mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-20 07:51:32 +00:00
fixes nightlies regression (#21689)
* fixes nightlies regression ref https://github.com/nim-lang/Nim/pull/21659 ref https://github.com/nim-lang/nightlies/actions/runs/4727252660/jobs/8387899690 > /home/runner/work/nightlies/nightlies/nim-1.9.3/lib/std/sysrand.nim(198, 12) Error: cannot evaluate at compile time: EINTR Because EINTR is not a const on i386 * Update lib/std/sysrand.nim
This commit is contained in:
@@ -194,8 +194,7 @@ elif defined(linux) and not defined(nimNoGetRandom) and not defined(emscripten):
|
||||
elif readBytes > 0:
|
||||
inc(result, readBytes)
|
||||
else:
|
||||
case osLastError().int
|
||||
of EINTR, EAGAIN: discard
|
||||
if osLastError().cint in [EINTR, EAGAIN]: discard
|
||||
else:
|
||||
result = -1
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user