authorgravatar for mrjbq7@gmail.comJohn Benediktsson <mrjbq7@gmail.com> 2026-02-19 11:40:26-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-02-20 05:36:46+01:00
log14d06330e0b85dbf9dbd2023d58d2af75a150bcc
treed2c3e2f5f22b3b9321993bbefaa898f3944fc8ea
parent8259d8d63145260bff4faf1d4d48b28d4061dc5a

std.c: fix SO_LINGER on darwin and define SO_LINGER_SEC


1 files changed, 2 insertions(+), 1 deletions(-)

lib/std/c.zig+2-1
......@@ -6679,7 +6679,7 @@ pub const SO = switch (native_os) {
66796679 pub const DONTROUTE = 0x0010;
66806680 pub const BROADCAST = 0x0020;
66816681 pub const USELOOPBACK = 0x0040;
6682 pub const LINGER = 0x1080;
6682 pub const LINGER = 0x0080;
66836683 pub const OOBINLINE = 0x0100;
66846684 pub const REUSEPORT = 0x0200;
66856685 pub const ACCEPTFILTER = 0x1000;
......@@ -6698,6 +6698,7 @@ pub const SO = switch (native_os) {
66986698 pub const NOADDRERR = 0x1023;
66996699 pub const NWRITE = 0x1024;
67006700 pub const REUSESHAREUID = 0x1025;
6701 pub const LINGER_SEC = 0x1080;
67016702 },
67026703 .freebsd => struct {
67036704 pub const DEBUG = 0x00000001;