aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2021-11-26 01:08:16 +0100
committerGitHub <noreply@github.com>2021-11-26 01:08:16 +0100
commit2006add8496c47804ee3b6c562f420871cb4ea0a (patch)
tree35a99f3a77d353a725599812a84b82d6449d796f /lib/std/Thread
parent9177f5c17b8dfe55b2aa0be1588bd1a4409386d1 (diff)
parenta0414012568028cd26a118c47be58940e10e2d95 (diff)
downloadzig-2006add8496c47804ee3b6c562f420871cb4ea0a.tar.gz
zig-2006add8496c47804ee3b6c562f420871cb4ea0a.zip
Merge pull request #10215 from ziglang/macos-versions
Ship versioned libc headers on macOS
Diffstat (limited to 'lib/std/Thread')
-rw-r--r--lib/std/Thread/Futex.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Thread/Futex.zig b/lib/std/Thread/Futex.zig
index 7c73d54017..0ecfdc0209 100644
--- a/lib/std/Thread/Futex.zig
+++ b/lib/std/Thread/Futex.zig
@@ -198,7 +198,7 @@ const DarwinFutex = struct {
// true so that we we know to ignore the ETIMEDOUT result.
var timeout_overflowed = false;
const status = blk: {
- if (target.os.version_range.semver.max.major >= 11) {
+ if (target.os.version_range.semver.min.major >= 11) {
break :blk darwin.__ulock_wait2(flags, addr, expect, timeout_ns, 0);
} else {
const timeout_us = std.math.cast(u32, timeout_ns / std.time.ns_per_us) catch overflow: {