mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Merge pull request #23541 from alexrp/linux-5.10
`std.Target`: Bump minimum Linux kernel and glibc versions according to Debian LTS
This commit is contained in:
commit
2cb69e53b4
2 changed files with 3 additions and 3 deletions
|
|
@ -455,7 +455,7 @@ pub const Os = struct {
|
|||
.linux = .{
|
||||
.range = .{
|
||||
.min = blk: {
|
||||
const default_min: std.SemanticVersion = .{ .major = 4, .minor = 19, .patch = 0 };
|
||||
const default_min: std.SemanticVersion = .{ .major = 5, .minor = 10, .patch = 0 };
|
||||
|
||||
for (std.zig.target.available_libcs) |libc| {
|
||||
if (libc.arch != arch or libc.os != tag or libc.abi != abi) continue;
|
||||
|
|
@ -470,7 +470,7 @@ pub const Os = struct {
|
|||
.max = .{ .major = 6, .minor = 13, .patch = 4 },
|
||||
},
|
||||
.glibc = blk: {
|
||||
const default_min: std.SemanticVersion = .{ .major = 2, .minor = 28, .patch = 0 };
|
||||
const default_min: std.SemanticVersion = .{ .major = 2, .minor = 31, .patch = 0 };
|
||||
|
||||
for (std.zig.target.available_libcs) |libc| {
|
||||
if (libc.os != tag or libc.arch != arch or libc.abi != abi) continue;
|
||||
|
|
|
|||
|
|
@ -1149,7 +1149,7 @@ pub fn access(path: [*:0]const u8, mode: u32) usize {
|
|||
}
|
||||
|
||||
pub fn faccessat(dirfd: i32, path: [*:0]const u8, mode: u32, flags: u32) usize {
|
||||
return syscall4(.faccessat, @as(usize, @bitCast(@as(isize, dirfd))), @intFromPtr(path), mode, flags);
|
||||
return syscall4(.faccessat2, @as(usize, @bitCast(@as(isize, dirfd))), @intFromPtr(path), mode, flags);
|
||||
}
|
||||
|
||||
pub fn pipe(fd: *[2]i32) usize {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue