| ... | @@ -198,7 +198,7 @@ const DarwinFutex = struct { | ... | @@ -198,7 +198,7 @@ const DarwinFutex = struct { |
| 198 | // true so that we we know to ignore the ETIMEDOUT result. | 198 | // true so that we we know to ignore the ETIMEDOUT result. |
| 199 | var timeout_overflowed = false; | 199 | var timeout_overflowed = false; |
| 200 | const status = blk: { | 200 | const status = blk: { |
| 201 | if (target.os.version_range.semver.max.major >= 11) { | 201 | if (target.os.version_range.semver.min.major >= 11) { |
| 202 | break :blk darwin.__ulock_wait2(flags, addr, expect, timeout_ns, 0); | 202 | break :blk darwin.__ulock_wait2(flags, addr, expect, timeout_ns, 0); |
| 203 | } else { | 203 | } else { |
| 204 | const timeout_us = std.math.cast(u32, timeout_ns / std.time.ns_per_us) catch overflow: { | 204 | const timeout_us = std.math.cast(u32, timeout_ns / std.time.ns_per_us) catch overflow: { |