mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 15:44:14 +00:00
fixes Windows builds
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user