Skip to content

Commit

Permalink
add mising msghdr definitions for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
truemedian committed Aug 2, 2024
1 parent 53b7b6b commit 3c5bd18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/std/c.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3414,7 +3414,7 @@ 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 => extern struct {
/// optional address
name: ?*sockaddr,
/// size of address
Expand All @@ -3434,7 +3434,7 @@ 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 => extern struct {
/// optional address
name: ?*const sockaddr,
/// size of address
Expand Down

0 comments on commit 3c5bd18

Please sign in to comment.