Skip to content

Commit

Permalink
Add missing pthread_key_t definition for Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
GabeRealB authored and alexrp committed Nov 16, 2024
1 parent bfcf18c commit ccf8488
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/std/c.zig
Original file line number Diff line number Diff line change
Expand Up @@ -7028,6 +7028,7 @@ pub const pthread_attr_t = switch (native_os) {

pub const pthread_key_t = switch (native_os) {
.linux, .emscripten => c_uint,
.macos, .ios, .tvos, .watchos, .visionos => c_ulong,
.openbsd, .solaris, .illumos => c_int,
else => void,
};
Expand Down

0 comments on commit ccf8488

Please sign in to comment.