aboutsummaryrefslogtreecommitdiff
path: root/lib/std/c.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-05-29 16:24:13 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-05-29 16:48:28 +0200
commit92b3c4b451dc05eca90433d7c6121b53c9508382 (patch)
tree183a66fca9926918f1eeb5cd3ece2feb79e1788f /lib/std/c.zig
parent71fd5ac38ad103fa600c33fbf11be9afc2777f19 (diff)
downloadzig-92b3c4b451dc05eca90433d7c6121b53c9508382.tar.gz
zig-92b3c4b451dc05eca90433d7c6121b53c9508382.zip
std.c: Expand the definition of NetBSD's pthread_rwlock_t for more targets.
Diffstat (limited to 'lib/std/c.zig')
-rw-r--r--lib/std/c.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/std/c.zig b/lib/std/c.zig
index 9acb87ade3..25d45ae8a6 100644
--- a/lib/std/c.zig
+++ b/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,