diff --git a/lib/std/c.zig b/lib/std/c.zig index 94d2a3405a04..e9961556fb19 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -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, };