aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_list.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-02-20 17:03:06 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-02-23 02:37:11 -0700
commit12a9e0f4150f0d30c851727f4dc2354fa6c90682 (patch)
treec22f047d48dd4a9a71a2dbe96504d444bbd97eeb /lib/std/array_list.zig
parent6395ba852a88f0e0b2a2f0659f1daf9d08e90157 (diff)
downloadzig-12a9e0f4150f0d30c851727f4dc2354fa6c90682.tar.gz
zig-12a9e0f4150f0d30c851727f4dc2354fa6c90682.zip
std.net.listen: fix Windows API use
In a previous commit I removed a load-bearing use of `@hasDecl` to detect whether the SO.REUSEPORT option should be set. `@hasDecl` should not be used for OS feature detection because it can hide bugs. The new logic checks for the operating system specifically and then does the thing that is supposed to be done on that operating system directly.
Diffstat (limited to 'lib/std/array_list.zig')
0 files changed, 0 insertions, 0 deletions