File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ pub const ServerToClient = struct {
5757
5858pub const BuildOnSaveSupport = union (enum ) {
5959 supported ,
60- invalid_linux_kernel_version : if (builtin.os.tag == .linux ) @FieldType (std .posix .utsname , "release" ) else noreturn ,
60+ invalid_linux_kernel_version : if (builtin.os.tag == .linux ) @FieldType (std .os . linux .utsname , "release" ) else noreturn ,
6161 unsupported_linux_kernel_version : if (builtin.os.tag == .linux ) std .SemanticVersion else noreturn ,
6262 unsupported_zig_version : if (@TypeOf (os_support ) == std .SemanticVersion ) void else noreturn ,
6363 unsupported_os : if (@TypeOf (os_support ) == bool and ! os_support ) void else noreturn ,
@@ -97,7 +97,8 @@ pub const BuildOnSaveSupport = union(enum) {
9797 comptime std .debug .assert (isSupportedComptime ());
9898
9999 if (builtin .os .tag == .linux ) blk : {
100- const utsname = std .posix .uname ();
100+ var utsname : std.os.linux.utsname = undefined ;
101+ std .debug .assert (std .os .linux .uname (& utsname ) == 0 );
101102 const unparsed_version = std .mem .sliceTo (& utsname .release , 0 );
102103 const version = parseUnameKernelVersion (unparsed_version ) catch
103104 return .{ .invalid_linux_kernel_version = utsname .release };
You can’t perform that action at this time.
0 commit comments