diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-05-29 16:24:13 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-05-29 16:48:28 +0200 |
| commit | 92b3c4b451dc05eca90433d7c6121b53c9508382 (patch) | |
| tree | 183a66fca9926918f1eeb5cd3ece2feb79e1788f /lib/std/c.zig | |
| parent | 71fd5ac38ad103fa600c33fbf11be9afc2777f19 (diff) | |
| download | zig-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.zig | 5 |
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, |
