zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit a24101be5b8ca31d72005e984b1eff2958de7d2b (tree)
parent e739b2b7d6b61da805bab64854b47978f872c48d
Author: Kenta Iwasaki <63115601+lithdew@users.noreply.github.com>
Date:   Sat,  8 May 2021 23:39:51 +0900

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

Co-authored-by: LemonBoy <LemonBoy@users.noreply.github.com>
Diffstat:
Mlib/std/x/os/socket_posix.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/x/os/socket_posix.zig b/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, }{