authorgravatar for david@vortan.devDavid Rubin <david@vortan.dev> 2025-01-28 00:08:28-08:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-01-29 13:34:37+01:00
log898658e3a0c4fdc4f352033d62921a8c6bfa2baa
treea540bf498595a835a5aecfb5308ebea18edf6731
parent308ba80597864ab12b77cff1ce28f001ad551fdf

std.c: add `msghdr` and `msghdr_const` definitions for macos


1 files changed, 30 insertions(+), 2 deletions(-)

lib/std/c.zig+30-2
...@@ -3528,7 +3528,21 @@ pub const itimerspec = switch (native_os) {...@@ -3528,7 +3528,21 @@ pub const itimerspec = switch (native_os) {
3528};3528};
3529pub const msghdr = switch (native_os) {3529pub const msghdr = switch (native_os) {
3530 .linux => linux.msghdr,3530 .linux => linux.msghdr,
3531 .openbsd, .emscripten, .dragonfly, .freebsd, .netbsd, .haiku, .solaris, .illumos => extern struct {3531 .openbsd,
3532 .emscripten,
3533 .dragonfly,
3534 .freebsd,
3535 .netbsd,
3536 .haiku,
3537 .solaris,
3538 .illumos,
3539 .macos,
3540 .driverkit,
3541 .ios,
3542 .tvos,
3543 .visionos,
3544 .watchos,
3545 => extern struct {
3532 /// optional address3546 /// optional address
3533 name: ?*sockaddr,3547 name: ?*sockaddr,
3534 /// size of address3548 /// size of address
...@@ -3548,7 +3562,21 @@ pub const msghdr = switch (native_os) {...@@ -3548,7 +3562,21 @@ pub const msghdr = switch (native_os) {
3548};3562};
3549pub const msghdr_const = switch (native_os) {3563pub const msghdr_const = switch (native_os) {
3550 .linux => linux.msghdr_const,3564 .linux => linux.msghdr_const,
3551 .openbsd, .emscripten, .dragonfly, .freebsd, .netbsd, .haiku, .solaris, .illumos => extern struct {3565 .openbsd,
3566 .emscripten,
3567 .dragonfly,
3568 .freebsd,
3569 .netbsd,
3570 .haiku,
3571 .solaris,
3572 .illumos,
3573 .macos,
3574 .driverkit,
3575 .ios,
3576 .tvos,
3577 .visionos,
3578 .watchos,
3579 => extern struct {
3552 /// optional address3580 /// optional address
3553 name: ?*const sockaddr,3581 name: ?*const sockaddr,
3554 /// size of address3582 /// size of address