aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorDavid Rubin <daviru007@icloud.com>2025-01-28 00:08:28 -0800
committerAlex Rønne Petersen <alex@alexrp.com>2025-01-29 13:34:37 +0100
commit898658e3a0c4fdc4f352033d62921a8c6bfa2baa (patch)
treea540bf498595a835a5aecfb5308ebea18edf6731 /lib/std
parent308ba80597864ab12b77cff1ce28f001ad551fdf (diff)
downloadzig-898658e3a0c4fdc4f352033d62921a8c6bfa2baa.tar.gz
zig-898658e3a0c4fdc4f352033d62921a8c6bfa2baa.zip
std.c: add `msghdr` and `msghdr_const` definitions for macos
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/c.zig32
1 files 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