authorgravatar for git@l4.pmLuna <git@l4.pm> 2019-11-10 16:44:18-03:00
committergravatar for git@l4.pmLuna <git@l4.pm> 2019-11-10 16:44:18-03:00
logc8a8da28049d2e9aece857359725b2a8f6d3732b
tree350bf6e0c36d6522a689e85869d3d75ec5dfd39f
parentd1eabe81a99c3fe6c0e551e9bab90a3bbae509fe

remove builtin.os check in Address.initUnix


1 files changed, 0 insertions(+), 5 deletions(-)

lib/std/net.zig-5
...@@ -218,11 +218,6 @@ pub const Address = extern union {...@@ -218,11 +218,6 @@ pub const Address = extern union {
218 }218 }
219219
220 pub fn initUnix(path: []const u8) !Address {220 pub fn initUnix(path: []const u8) !Address {
221 switch (builtin.os) {
222 .linux, .macosx, .freebsd, .netbsd => {},
223 else => return error.UnsupportedOS,
224 }
225
226 var sock_addr = os.sockaddr_un{221 var sock_addr = os.sockaddr_un{
227 .family = os.AF_UNIX,222 .family = os.AF_UNIX,
228 .path = undefined,223 .path = undefined,