mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
fixes #24371
(cherry picked from commit 74df699ff1)
This commit is contained in:
@@ -449,14 +449,9 @@ type
|
||||
|
||||
SockLen* = cuint
|
||||
|
||||
when defined(cpp):
|
||||
type
|
||||
Timeval* {.importc: "timeval", header: "<time.h>".} = object
|
||||
tv_sec*, tv_usec*: int32
|
||||
else:
|
||||
type
|
||||
Timeval* = object
|
||||
tv_sec*, tv_usec*: int32
|
||||
type
|
||||
Timeval* {.importc: "struct timeval", header: "<time.h>".} = object
|
||||
tv_sec*, tv_usec*: int32
|
||||
|
||||
var
|
||||
SOMAXCONN* {.importc, header: "winsock2.h".}: cint
|
||||
|
||||
Reference in New Issue
Block a user