aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/std/net.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/net.zig b/lib/std/net.zig
index aa38aeae08..96c95fc497 100644
--- 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),
@@ -377,7 +377,6 @@ pub fn connectUnixSocket(path: []const u8) !fs.File {
return fs.File{
.handle = sockfd,
- .io_mode = std.io.mode,
};
}