Fixed socket compilation problems on Windows.
This commit is contained in:
parent
8231deffd0
commit
f695bb0b6f
2 changed files with 10 additions and 10 deletions
|
|
@ -130,10 +130,10 @@ let
|
|||
InvalidSocket*: TSocket = nil ## invalid socket
|
||||
|
||||
when defined(windows):
|
||||
const
|
||||
let
|
||||
OSInvalidSocket = winlean.INVALID_SOCKET
|
||||
else:
|
||||
const
|
||||
let
|
||||
OSInvalidSocket = posix.INVALID_SOCKET
|
||||
|
||||
proc newTSocket(fd: TSocketHandle, isBuff: bool): TSocket =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue