fixes Windows builds
This commit is contained in:
parent
ddca807a89
commit
6556ec2ce0
1 changed files with 2 additions and 0 deletions
|
|
@ -518,6 +518,8 @@ var
|
|||
SO_DEBUG* {.importc, header: "winsock2.h".}: cint ## turn on debugging info recording
|
||||
SO_ACCEPTCONN* {.importc, header: "winsock2.h".}: cint # socket has had listen()
|
||||
SO_REUSEADDR* {.importc, header: "winsock2.h".}: cint # allow local address reuse
|
||||
SO_REUSEPORT* {.importc: "SO_REUSEADDR", header: "winsock2.h".}: cint # allow port reuse. Since Windows does not really support it, mapped to SO_REUSEADDR. This shouldn't cause problems.
|
||||
|
||||
SO_KEEPALIVE* {.importc, header: "winsock2.h".}: cint # keep connections alive
|
||||
SO_DONTROUTE* {.importc, header: "winsock2.h".}: cint # just use interface addresses
|
||||
SO_BROADCAST* {.importc, header: "winsock2.h".}: cint # permit sending of broadcast msgs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue