mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
std.c: Expand the definition of NetBSD's pthread_rwlock_t for more targets.
This commit is contained in:
parent
71fd5ac38a
commit
92b3c4b451
1 changed files with 3 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue