From a2a91199d77116710f9ff85be291004375be314f Mon Sep 17 00:00:00 2001 From: GasInfinity Date: Tue, 21 Apr 2026 10:31:47 +0200 Subject: [PATCH] fix: add `pthread_spin_*` definitions for the BSDs in `std.c` * each BSD has a different one --- lib/std/c.zig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/std/c.zig b/lib/std/c.zig index 294ff0f449af5951c8c37b3a53f60fb1000f38a4..337e602e77683c217ba374630625448401a9ed68 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -7900,6 +7900,14 @@ pub const Stat = switch (native_os) { pub const pthread_spinlock_t = switch (native_os) { .openbsd => openbsd.pthread_spinlock_t, + .freebsd => extern struct { + inner: ?*anyopaque = null, + }, + .netbsd => extern struct { + pts_magic: c_uint, + spin: pthread_spin_t, + pts_flags: c_int, + }, .windows => isize, else => c_int, }; -- 2.54.0