authorgravatar for me@gasinfinity.devGasInfinity <me@gasinfinity.dev> 2026-04-21 10:31:47+02:00
committergravatar for me@gasinfinity.devGasInfinity <me@gasinfinity.dev> 2026-04-21 10:31:47+02:00
loga2a91199d77116710f9ff85be291004375be314f
tree902774ea448b8bfeed6708c4053b2cc321d8746a
parent61cd38e8ace66de64b2d3e53b2ebc327a979c4ef
signaturebadge-check Signed by SSH key SHA256:p3IHbr0lyK2ekfDC1Zi7dOEV/9T6lGghNawhl5sBnM4

fix: add `pthread_spin_*` definitions for the BSDs in `std.c`

* each BSD has a different one

1 files changed, 8 insertions(+), 0 deletions(-)

lib/std/c.zig+8
...@@ -7900,6 +7900,14 @@ pub const Stat = switch (native_os) {...@@ -7900,6 +7900,14 @@ pub const Stat = switch (native_os) {
79007900
7901pub const pthread_spinlock_t = switch (native_os) {7901pub const pthread_spinlock_t = switch (native_os) {
7902 .openbsd => openbsd.pthread_spinlock_t,7902 .openbsd => openbsd.pthread_spinlock_t,
7903 .freebsd => extern struct {
7904 inner: ?*anyopaque = null,
7905 },
7906 .netbsd => extern struct {
7907 pts_magic: c_uint,
7908 spin: pthread_spin_t,
7909 pts_flags: c_int,
7910 },
7903 .windows => isize,7911 .windows => isize,
7904 else => c_int,7912 else => c_int,
7905};7913};