mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 01:04:43 +01:00
std.c: fix SO_LINGER on darwin and define SO_LINGER_SEC
This commit is contained in:
parent
8259d8d631
commit
14d06330e0
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue