zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 14d06330e0b85dbf9dbd2023d58d2af75a150bcc (tree)
parent 8259d8d63145260bff4faf1d4d48b28d4061dc5a
Author: John Benediktsson <mrjbq7@gmail.com>
Date:   Thu, 19 Feb 2026 11:40:26 -0800

std.c: fix SO_LINGER on darwin and define SO_LINGER_SEC

Diffstat:
Mlib/std/c.zig | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/std/c.zig b/lib/std/c.zig @@ -6679,7 +6679,7 @@ pub const SO = switch (native_os) { pub const DONTROUTE = 0x0010; pub const BROADCAST = 0x0020; pub const USELOOPBACK = 0x0040; - pub const LINGER = 0x1080; + pub const LINGER = 0x0080; pub const OOBINLINE = 0x0100; pub const REUSEPORT = 0x0200; pub const ACCEPTFILTER = 0x1000; @@ -6698,6 +6698,7 @@ pub const SO = switch (native_os) { pub const NOADDRERR = 0x1023; pub const NWRITE = 0x1024; pub const REUSESHAREUID = 0x1025; + pub const LINGER_SEC = 0x1080; }, .freebsd => struct { pub const DEBUG = 0x00000001;