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) {
35283528};
35293529pub const msghdr = switch (native_os) {
35303530 .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 {
35323546 /// optional address
35333547 name: ?*sockaddr,
35343548 /// size of address
......@@ -3548,7 +3562,21 @@ pub const msghdr = switch (native_os) {
35483562};
35493563pub const msghdr_const = switch (native_os) {
35503564 .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 {
35523580 /// optional address
35533581 name: ?*const sockaddr,
35543582 /// size of address