| ... | @@ -156,7 +156,7 @@ pub const Socket = struct { | ... | @@ -156,7 +156,7 @@ pub const Socket = struct { |
| 156 | /// seconds. | 156 | /// seconds. |
| 157 | pub fn setLinger(self: Socket, timeout_seconds: ?u16) !void { | 157 | pub fn setLinger(self: Socket, timeout_seconds: ?u16) !void { |
| 158 | if (comptime @hasDecl(os, "SO_LINGER")) { | 158 | if (comptime @hasDecl(os, "SO_LINGER")) { |
| 159 | const settings = struct { | 159 | const settings = extern struct { |
| 160 | l_onoff: c_int, | 160 | l_onoff: c_int, |
| 161 | l_linger: c_int, | 161 | l_linger: c_int, |
| 162 | }{ | 162 | }{ |