| ... | ... | @@ -109,9 +109,12 @@ const PosixEvent = struct { |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | fn deinit(self: *PosixEvent) void { |
| 112 | | // on dragonfly, *destroy() functions can return EINVAL |
| 112 | // on dragonfly or openbsd, *destroy() functions can return EINVAL |
| 113 | 113 | // for statically initialized pthread structures |
| 114 | | const err = if (builtin.os.tag == .dragonfly) os.EINVAL else 0; |
| 114 | const err = if (builtin.os.tag == .dragonfly or builtin.os.tag == .openbsd) |
| 115 | os.EINVAL |
| 116 | else |
| 117 | 0; |
| 115 | 118 | |
| 116 | 119 | const retm = c.pthread_mutex_destroy(&self.mutex); |
| 117 | 120 | assert(retm == 0 or retm == err); |