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;