Commit c8a8da2804

Luna <git@l4.pm>
2019-11-10 20:44:18
remove builtin.os check in Address.initUnix
1 parent d1eabe8
Changed files (1)
lib
lib/std/net.zig
@@ -218,11 +218,6 @@ pub const Address = extern union {
     }
 
     pub fn initUnix(path: []const u8) !Address {
-        switch (builtin.os) {
-            .linux, .macosx, .freebsd, .netbsd => {},
-            else => return error.UnsupportedOS,
-        }
-
         var sock_addr = os.sockaddr_un{
             .family = os.AF_UNIX,
             .path = undefined,