commit 3e3c651b670fb45e714db1cfb32428c3ea3cd828 (tree)
parent e79d7e0deda9e74dbaad1aa77db3e041f92f4f71
Author: Vexu <git@vexu.eu>
Date: Mon, 11 May 2020 20:10:59 +0300
Merge pull request #5316 from marler8997/pubSockLen
make Address.getOsSockLen pub
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/net.zig b/lib/std/net.zig
@@ -341,7 +341,7 @@ pub const Address = extern union {
return mem.eql(u8, a_bytes, b_bytes);
}
- fn getOsSockLen(self: Address) os.socklen_t {
+ pub fn getOsSockLen(self: Address) os.socklen_t {
switch (self.any.family) {
os.AF_INET => return @sizeOf(os.sockaddr_in),
os.AF_INET6 => return @sizeOf(os.sockaddr_in6),