-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavioros-macosmacOSmacOSstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Description
Zig Version
0.10.0-dev.203+0772fb051
Steps to Reproduce
const std = @import("std");
test "resolve ip" {
try std.net.Address.resolveIp("google.com", 80);
}zig test test.zig
Expected Behavior
The test passes
Actual Behavior
$ zig test test.zig
/opt/homebrew/Cellar/zig/HEAD-0772fb0/lib/zig/std/os.zig:83:30: error: container 'std.c' has no member called 'IFNAMESIZE'
pub const IFNAMESIZE = system.IFNAMESIZE;
^
/opt/homebrew/Cellar/zig/HEAD-0772fb0/lib/zig/std/net.zig:427:32: note: referenced here
var scope_id_value: [os.IFNAMESIZE - 1]u8 = undefined;
^
/opt/homebrew/Cellar/zig/HEAD-0772fb0/lib/zig/std/net.zig:85:32: note: referenced here
return Address{ .in6 = try Ip6Address.resolve(buf, port) };
^
/opt/homebrew/Cellar/zig/HEAD-0772fb0/lib/zig/std/net.zig:58:9: note: referenced here
if (resolveIp6(name, port)) |ip6| return ip6 else |err| switch (err) {
^
./test.zig:4:5: note: referenced here
try std.net.Address.resolveIp("google.com", 80);
^
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavioros-macosmacOSmacOSstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.