authorgravatar for 63115601+lithdew@users.noreply.github.comKenta Iwasaki <63115601+lithdew@users.noreply.github.com> 2021-05-08 23:39:51+09:00
committergravatar for kenta@lithdew.netlithdew <kenta@lithdew.net> 2021-05-10 19:22:31+09:00
loga24101be5b8ca31d72005e984b1eff2958de7d2b
tree6b460c5383be4f169275298fad10e0625ade35ee
parente739b2b7d6b61da805bab64854b47978f872c48d

x/os/socket_posix.zig: make linger struct extern

Co-authored-by: LemonBoy <LemonBoy@users.noreply.github.com>

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

lib/std/x/os/socket_posix.zig+1-1
...@@ -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 }{