From 14d06330e0b85dbf9dbd2023d58d2af75a150bcc Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Thu, 19 Feb 2026 11:40:26 -0800 Subject: [PATCH] std.c: fix SO_LINGER on darwin and define SO_LINGER_SEC --- lib/std/c.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/std/c.zig b/lib/std/c.zig index f4bdf3969c..653e10576d 100644 --- 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;