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>
This commit is contained in:
Peter Munch-Ellingsen 2022-09-26 21:44:02 +02:00 • committed by GitHub
commit 805186809c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -505,9 +505,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