Skip to content

Commit 2d87232

Browse files
haoyu234narimiran
authored andcommitted
Update winlean.nim, import AddrInfo from ws2tcpip.h (#24828)
[ADDRINFOA](https://learn.microsoft.com/en-us/windows/win32/api/ws2def/ns-ws2def-addrinfoa#remarks). (cherry picked from commit b961ee6)
1 parent 96f5b69 commit 2d87232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/windows/winlean.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ type
437437
fd_count*: cint # unsigned
438438
fd_array*: array[0..FD_SETSIZE-1, SocketHandle]
439439

440-
AddrInfo* = object
440+
AddrInfo* {.importc: "ADDRINFOA", header: "ws2tcpip.h".} = object
441441
ai_flags*: cint ## Input flags.
442442
ai_family*: cint ## Address family of socket.
443443
ai_socktype*: cint ## Socket type.

0 commit comments

Comments
 (0)