Commit 4532ff2780

Michael Dusan <michael.dusan@gmail.com>
2023-08-15 23:20:04
netbsd: std.c: fix pthread_rwlock_t
- make .owner field optional
1 parent bac3c27
Changed files (1)
lib
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,
 };