Switch c INET consts to c from posix
This commit is contained in:
parent
9b4f850fe5
commit
5b03128c39
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ fn get_mdns_socket(ip_info: util.IPInfo) !socket {
|
|||
};
|
||||
const addr = try std.net.Address.resolveIp(target_addr, 5353);
|
||||
const sock = std.c.socket(switch (ip_info.version) {
|
||||
util.IP_VER_ENUM.IPv4 => std.posix.AF.INET,
|
||||
util.IP_VER_ENUM.IPv6 => std.posix.AF.INET6,
|
||||
util.IP_VER_ENUM.IPv4 => std.c.AF.INET,
|
||||
util.IP_VER_ENUM.IPv6 => std.c.AF.INET6,
|
||||
}, std.c.SOCK.DGRAM, std.c.IPPROTO.UDP);
|
||||
if (sock == -1) {
|
||||
return MDNSError.SocketInitFail;
|
||||
|
|
Loading…
Reference in a new issue