hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 771b9524506e91bd16e7a0ca9b11f9f8a3b4631e
parent 921c0ac5f172ab2ab709510a7bef0228aaa53166
Author: Mykyta Holubakha <hilobakho@gmail.com>
Date:   Wed, 24 Mar 2021 01:12:28 +0200

rt/socket: sockaddr_in6 definition fix

Diffstat:
Mrt/+linux/socket.ha | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/rt/+linux/socket.ha b/rt/+linux/socket.ha @@ -23,7 +23,7 @@ export type sockaddr_in6 = struct { sin6_family: sa_family_t, sin6_port: u16, sin6_flowinfo: u32, - sin6_addr: in_addr, + sin6_addr: in6_addr, sin6_scope_id: u32, }; @@ -34,10 +34,12 @@ export type sockaddr_un = struct { sun_path: [UNIX_PATH_MAX]char, }; -export type sockaddr = union { - in: sockaddr_in, - in6: sockaddr_in6, - un: sockaddr_un, +export type sockaddr = struct { + union { + in: sockaddr_in, + in6: sockaddr_in6, + un: sockaddr_un, + }, }; // domain for socket(2)