authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-29 16:24:13+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-29 16:48:28+02:00
log92b3c4b451dc05eca90433d7c6121b53c9508382
tree183a66fca9926918f1eeb5cd3ece2feb79e1788f
parent71fd5ac38ad103fa600c33fbf11be9afc2777f19
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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


1 files changed, 3 insertions(+), 2 deletions(-)

lib/std/c.zig+3-2
...@@ -8005,8 +8005,9 @@ pub const pthread_rwlock_t = switch (native_os) {...@@ -8005,8 +8005,9 @@ pub const pthread_rwlock_t = switch (native_os) {
8005 .netbsd => extern struct {8005 .netbsd => extern struct {
8006 magic: c_uint = 0x99990009,8006 magic: c_uint = 0x99990009,
8007 interlock: switch (builtin.cpu.arch) {8007 interlock: switch (builtin.cpu.arch) {
8008 .aarch64, .sparc, .x86_64, .x86 => u8,8008 .aarch64, .aarch64_be, .m68k, .sparc, .sparc64, .x86, .x86_64 => u8,
8009 .arm, .powerpc => c_int,8009 .arm, .armeb, .powerpc => c_int,
8010 .mips, .mipsel, .mips64, .mips64el => c_uint,
8010 else => unreachable,8011 else => unreachable,
8011 } = 0,8012 } = 0,
8012 rblocked_first: ?*u8 = null,8013 rblocked_first: ?*u8 = null,