| ... | @@ -1303,7 +1303,7 @@ pub const StreamServer = struct { | ... | @@ -1303,7 +1303,7 @@ pub const StreamServer = struct { |
| 1303 | pub fn listen(self: *StreamServer, address: Address) !void { | 1303 | pub fn listen(self: *StreamServer, address: Address) !void { |
| 1304 | const nonblock = if (std.io.is_async) os.SOCK_NONBLOCK else 0; | 1304 | const nonblock = if (std.io.is_async) os.SOCK_NONBLOCK else 0; |
| 1305 | const sock_flags = os.SOCK_STREAM | os.SOCK_CLOEXEC | nonblock; | 1305 | const sock_flags = os.SOCK_STREAM | os.SOCK_CLOEXEC | nonblock; |
| 1306 | const proto = if (address.any.family == os.AF_UNIX) u32(0) else os.IPPROTO_TCP; | 1306 | const proto = if (address.any.family == os.AF_UNIX) @as(u32, 0) else os.IPPROTO_TCP; |
| 1307 | const sockfd = try os.socket(address.any.family, sock_flags, proto); | 1307 | const sockfd = try os.socket(address.any.family, sock_flags, proto); |
| 1308 | self.sockfd = sockfd; | 1308 | self.sockfd = sockfd; |
| 1309 | errdefer { | 1309 | errdefer { |