Commit 92b3c4b451

Alex Rønne Petersen <alex@alexrp.com>
2025-05-29 16:24:13
std.c: Expand the definition of NetBSD's pthread_rwlock_t for more targets.
1 parent 71fd5ac
Changed files (1)
lib
std
lib/std/c.zig
@@ -8005,8 +8005,9 @@ pub const pthread_rwlock_t = switch (native_os) {
     .netbsd => extern struct {
         magic: c_uint = 0x99990009,
         interlock: switch (builtin.cpu.arch) {
-            .aarch64, .sparc, .x86_64, .x86 => u8,
-            .arm, .powerpc => c_int,
+            .aarch64, .aarch64_be, .m68k, .sparc, .sparc64, .x86, .x86_64 => u8,
+            .arm, .armeb, .powerpc => c_int,
+            .mips, .mipsel, .mips64, .mips64el => c_uint,
             else => unreachable,
         } = 0,
         rblocked_first: ?*u8 = null,