mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 03:32:32 +00:00
Fix issue with fields trying to use wrong name (#12655)
* Fix issue with fields trying to use wrong name
* Fix similar issue in winlean
* Revert accidental csize change
Co-authored-by: Clyybber <darkmine956@gmail.com>
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
(cherry picked from commit 805186809c)
This commit is contained in:
committed by
narimiran
parent
5def1fc8f6
commit
2dff0c1a61
@@ -428,8 +428,8 @@ type
|
||||
header: "<sys/socket.h>",
|
||||
pure, final.} = object ## struct sockaddr_storage
|
||||
ss_family*: TSa_Family ## Address family.
|
||||
ss_padding: array[128 - sizeof(cshort) - sizeof(culong), char]
|
||||
ss_align: clong
|
||||
ss_padding {.importc: "__ss_padding".}: array[128 - sizeof(cshort) - sizeof(culong), char]
|
||||
ss_align {.importc: "__ss_align".}: clong
|
||||
|
||||
Tif_nameindex* {.importc: "struct if_nameindex", final,
|
||||
pure, header: "<net/if.h>".} = object ## struct if_nameindex
|
||||
|
||||
@@ -502,9 +502,9 @@ type
|
||||
Sockaddr_storage* {.importc: "SOCKADDR_STORAGE",
|
||||
header: "winsock2.h".} = object
|
||||
ss_family*: uint16
|
||||
ss_pad1: array[6, byte]
|
||||
ss_align: int64
|
||||
ss_pad2: array[112, byte]
|
||||
ss_pad1 {.importc: "__ss_pad1".}: array[6, byte]
|
||||
ss_align {.importc: "__ss_align".}: int64
|
||||
ss_pad2 {.importc: "__ss_pad2".}: array[112, byte]
|
||||
|
||||
Servent* = object
|
||||
s_name*: cstring
|
||||
|
||||
Reference in New Issue
Block a user