authorgravatar for bblack@wikimedia.orgBrandon Black <bblack@wikimedia.org> 2026-09-02 17:57:24-05:00
committergravatar for bblack@wikimedia.orgBrandon Black <bblack@wikimedia.org> 2026-09-02 18:24:20-05:00
loge78ea8f2cb3677c0a104319b8aa5e37ea64d9cfa
treed51d542a6504ce2e72a8dab02e803e74c9f4a77b
parent79837d51123460e4f0a04ba523d01b10f7c314cd

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.

1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/c.zig+3
...@@ -6614,6 +6614,7 @@ pub const IP = switch (native_os) {...@@ -6614,6 +6614,7 @@ pub const IP = switch (native_os) {
6614 .illumos => illumos.IP,6614 .illumos => illumos.IP,
6615 .haiku => haiku.IP,6615 .haiku => haiku.IP,
6616 .serenity => serenity.IP,6616 .serenity => serenity.IP,
6617 .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => darwin.IP,
6617 else => void,6618 else => void,
6618};6619};
6619pub const IPV6 = switch (native_os) {6620pub const IPV6 = switch (native_os) {
...@@ -6625,6 +6626,7 @@ pub const IPV6 = switch (native_os) {...@@ -6625,6 +6626,7 @@ pub const IPV6 = switch (native_os) {
6625 .illumos => illumos.IPV6,6626 .illumos => illumos.IPV6,
6626 .haiku => haiku.IPV6,6627 .haiku => haiku.IPV6,
6627 .serenity => serenity.IPV6,6628 .serenity => serenity.IPV6,
6629 .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => darwin.IPV6,
6628 else => void,6630 else => void,
6629};6631};
6630pub const IPTOS = switch (native_os) {6632pub const IPTOS = switch (native_os) {
...@@ -6636,6 +6638,7 @@ pub const IPTOS = switch (native_os) {...@@ -6636,6 +6638,7 @@ pub const IPTOS = switch (native_os) {
6636 .illumos => illumos.IPTOS,6638 .illumos => illumos.IPTOS,
6637 .haiku => haiku.IPTOS,6639 .haiku => haiku.IPTOS,
6638 .serenity => serenity.IPTOS,6640 .serenity => serenity.IPTOS,
6641 .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => darwin.IPTOS,
6639 else => void,6642 else => void,
6640};6643};
6641pub const SOL = switch (native_os) {6644pub const SOL = switch (native_os) {