make Address.getOsSockLen pub

master
Jonathan Marler 2020-05-11 09:11:05 -06:00
parent e79d7e0ded
commit 832f6c1228
1 changed files with 1 additions and 1 deletions

View File

@ -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),