From e78ea8f2cb3677c0a104319b8aa5e37ea64d9cfa Mon Sep 17 00:00:00 2001 From: Brandon Black Date: Wed, 2 Sep 2026 17:57:24 -0500 Subject: [PATCH] std.c: hook up IP, IPV6, IPTOS consts for Darwin These were already defined in std.c.darwin, but weren't included in the appropriate std.c top-level switches. --- lib/std/c.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/std/c.zig b/lib/std/c.zig index 262244ecf34dc81ee70552b0a24a7f0e432d9244..5fcefbf03ed0f0b3e86b7ee228f901fcd0b38e2f 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -6614,6 +6614,7 @@ pub const IP = switch (native_os) { .illumos => illumos.IP, .haiku => haiku.IP, .serenity => serenity.IP, + .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => darwin.IP, else => void, }; pub const IPV6 = switch (native_os) { @@ -6625,6 +6626,7 @@ pub const IPV6 = switch (native_os) { .illumos => illumos.IPV6, .haiku => haiku.IPV6, .serenity => serenity.IPV6, + .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => darwin.IPV6, else => void, }; pub const IPTOS = switch (native_os) { @@ -6636,6 +6638,7 @@ pub const IPTOS = switch (native_os) { .illumos => illumos.IPTOS, .haiku => haiku.IPTOS, .serenity => serenity.IPTOS, + .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => darwin.IPTOS, else => void, }; pub const SOL = switch (native_os) { -- 2.54.0