Skip to content

Commit 92b3c4b

Browse files
committed
std.c: Expand the definition of NetBSD's pthread_rwlock_t for more targets.
1 parent 71fd5ac commit 92b3c4b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/std/c.zig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8005,8 +8005,9 @@ pub const pthread_rwlock_t = switch (native_os) {
80058005
.netbsd => extern struct {
80068006
magic: c_uint = 0x99990009,
80078007
interlock: switch (builtin.cpu.arch) {
8008-
.aarch64, .sparc, .x86_64, .x86 => u8,
8009-
.arm, .powerpc => c_int,
8008+
.aarch64, .aarch64_be, .m68k, .sparc, .sparc64, .x86, .x86_64 => u8,
8009+
.arm, .armeb, .powerpc => c_int,
8010+
.mips, .mipsel, .mips64, .mips64el => c_uint,
80108011
else => unreachable,
80118012
} = 0,
80128013
rblocked_first: ?*u8 = null,

0 commit comments

Comments
 (0)