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 Sep 5, 2024
1 parent 8948dcc commit bed57d5
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 @@ -3446,7 +3446,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 @@ -3466,7 +3466,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 bed57d5

Please sign in to comment.