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) {...@@ -6679,7 +6679,7 @@ pub const SO = switch (native_os) {
6679 pub const DONTROUTE = 0x0010;6679 pub const DONTROUTE = 0x0010;
6680 pub const BROADCAST = 0x0020;6680 pub const BROADCAST = 0x0020;
6681 pub const USELOOPBACK = 0x0040;6681 pub const USELOOPBACK = 0x0040;
6682 pub const LINGER = 0x1080;6682 pub const LINGER = 0x0080;
6683 pub const OOBINLINE = 0x0100;6683 pub const OOBINLINE = 0x0100;
6684 pub const REUSEPORT = 0x0200;6684 pub const REUSEPORT = 0x0200;
6685 pub const ACCEPTFILTER = 0x1000;6685 pub const ACCEPTFILTER = 0x1000;
...@@ -6698,6 +6698,7 @@ pub const SO = switch (native_os) {...@@ -6698,6 +6698,7 @@ pub const SO = switch (native_os) {
6698 pub const NOADDRERR = 0x1023;6698 pub const NOADDRERR = 0x1023;
6699 pub const NWRITE = 0x1024;6699 pub const NWRITE = 0x1024;
6700 pub const REUSESHAREUID = 0x1025;6700 pub const REUSESHAREUID = 0x1025;
6701 pub const LINGER_SEC = 0x1080;
6701 },6702 },
6702 .freebsd => struct {6703 .freebsd => struct {
6703 pub const DEBUG = 0x00000001;6704 pub const DEBUG = 0x00000001;