Commit a24101be5b

Kenta Iwasaki <63115601+lithdew@users.noreply.github.com>
2021-05-08 16:39:51
x/os/socket_posix.zig: make linger struct extern
Co-authored-by: LemonBoy <LemonBoy@users.noreply.github.com>
1 parent e739b2b
Changed files (1)
lib
lib/std/x/os/socket_posix.zig
@@ -156,7 +156,7 @@ pub const Socket = struct {
     /// seconds.
     pub fn setLinger(self: Socket, timeout_seconds: ?u16) !void {
         if (comptime @hasDecl(os, "SO_LINGER")) {
-            const settings = struct {
+            const settings = extern struct {
                 l_onoff: c_int,
                 l_linger: c_int,
             }{