diff --git a/lib/std/c/netbsd.zig b/lib/std/c/netbsd.zig index 1986d4e9bc..2380314429 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, };