mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
remove builtin.os check in Address.initUnix
This commit is contained in:
parent
d1eabe81a9
commit
c8a8da2804
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user