From 4532ff278096dce71f5726a8aff051f834855d54 Mon Sep 17 00:00:00 2001 From: Michael Dusan Date: Tue, 15 Aug 2023 17:20:04 -0400 Subject: [PATCH] netbsd: std.c: fix pthread_rwlock_t - make .owner field optional --- lib/std/c/netbsd.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/c/netbsd.zig b/lib/std/c/netbsd.zig index 1986d4e9bc40d7df1b1f7ef26b2a17c6656f0efb..23803144296aa01541ccc360f7d3e0716946ee1d 100644 --- a/lib/std/c/netbsd.zig +++ b/lib/std/c/netbsd.zig @@ -93,7 +93,7 @@ pub const pthread_rwlock_t = extern struct { wblocked_first: ?*u8 = null, wblocked_last: ?*u8 = null, nreaders: c_uint = 0, - owner: std.c.pthread_t = null, + owner: ?std.c.pthread_t = null, private: ?*anyopaque = null, }; -- 2.54.0