diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2021-11-26 01:08:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-26 01:08:16 +0100 |
| commit | 2006add8496c47804ee3b6c562f420871cb4ea0a (patch) | |
| tree | 35a99f3a77d353a725599812a84b82d6449d796f /lib/std/Thread/Futex.zig | |
| parent | 9177f5c17b8dfe55b2aa0be1588bd1a4409386d1 (diff) | |
| parent | a0414012568028cd26a118c47be58940e10e2d95 (diff) | |
| download | zig-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/Futex.zig')
| -rw-r--r-- | lib/std/Thread/Futex.zig | 2 |
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: { |
