mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 11:12:37 +00:00
Fixes OSError deprecation warning.
This commit is contained in:
@@ -404,7 +404,7 @@ template gaiNim(a, p, h, list: expr): stmt =
|
||||
when defined(windows):
|
||||
OSError(OSLastError())
|
||||
else:
|
||||
OSError($gai_strerror(gaiResult))
|
||||
raise newException(EOS, $gai_strerror(gaiResult))
|
||||
|
||||
proc bindAddr*(socket: TSocket, port = TPort(0), address = "") {.
|
||||
tags: [FReadIO].} =
|
||||
|
||||
Reference in New Issue
Block a user