std.c: Expand the definition of NetBSD's pthread_rwlock_t for more targets.

This commit is contained in:
Alex Rønne Petersen 2025-05-29 16:24:13 +02:00
parent 71fd5ac38a
commit 92b3c4b451
No known key found for this signature in database

View file

@ -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,