From 5b03128c39e1bacbf58be76d63cba2b966d7315b Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Sat, 11 May 2024 16:13:26 +0500 Subject: [PATCH] Switch c INET consts to c from posix --- src/mdns.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mdns.zig b/src/mdns.zig index 76fbf60..4878094 100644 --- a/src/mdns.zig +++ b/src/mdns.zig @@ -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;