From 898658e3a0c4fdc4f352033d62921a8c6bfa2baa Mon Sep 17 00:00:00 2001 From: David Rubin Date: Tue, 28 Jan 2025 00:08:28 -0800 Subject: [PATCH] std.c: add `msghdr` and `msghdr_const` definitions for macos --- lib/std/c.zig | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/lib/std/c.zig b/lib/std/c.zig index 7c26025ac9..a90860f6f5 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -3528,7 +3528,21 @@ pub const itimerspec = switch (native_os) { }; pub const msghdr = switch (native_os) { .linux => linux.msghdr, - .openbsd, .emscripten, .dragonfly, .freebsd, .netbsd, .haiku, .solaris, .illumos => extern struct { + .openbsd, + .emscripten, + .dragonfly, + .freebsd, + .netbsd, + .haiku, + .solaris, + .illumos, + .macos, + .driverkit, + .ios, + .tvos, + .visionos, + .watchos, + => extern struct { /// optional address name: ?*sockaddr, /// size of address @@ -3548,7 +3562,21 @@ pub const msghdr = switch (native_os) { }; pub const msghdr_const = switch (native_os) { .linux => linux.msghdr_const, - .openbsd, .emscripten, .dragonfly, .freebsd, .netbsd, .haiku, .solaris, .illumos => extern struct { + .openbsd, + .emscripten, + .dragonfly, + .freebsd, + .netbsd, + .haiku, + .solaris, + .illumos, + .macos, + .driverkit, + .ios, + .tvos, + .visionos, + .watchos, + => extern struct { /// optional address name: ?*const sockaddr, /// size of address