mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-21 13:34:28 +00:00
22 lines
1.0 KiB
Diff
22 lines
1.0 KiB
Diff
diff -uNr zig-bootstrap-0.14.0.orig/zig/lib/std/os/linux.zig zig-bootstrap-0.14.0/zig/lib/std/os/linux.zig
|
|
--- zig-bootstrap-0.14.0.orig/zig/lib/std/os/linux.zig 2025-03-06 04:47:21.734564519 +0100
|
|
+++ zig-bootstrap-0.14.0/zig/lib/std/os/linux.zig 2025-03-06 04:55:49.549917625 +0100
|
|
@@ -1120,7 +1120,7 @@
|
|
}
|
|
|
|
pub fn access(path: [*:0]const u8, mode: u32) usize {
|
|
- if (@hasField(SYS, "access")) {
|
|
+ if (@hasField(SYS, "access") and (comptime builtin.cpu.arch != .x86_64)) {
|
|
return syscall2(.access, @intFromPtr(path), mode);
|
|
} else {
|
|
return syscall4(.faccessat, @as(usize, @bitCast(@as(isize, AT.FDCWD))), @intFromPtr(path), mode, 0);
|
|
@@ -1134,7 +1134,7 @@
|
|
pub fn pipe(fd: *[2]i32) usize {
|
|
if (comptime (native_arch.isMIPS() or native_arch.isSPARC())) {
|
|
return syscall_pipe(fd);
|
|
- } else if (@hasField(SYS, "pipe")) {
|
|
+ } else if (@hasField(SYS, "pipe") and (comptime builtin.cpu.arch != .x86_64)) {
|
|
return syscall1(.pipe, @intFromPtr(fd));
|
|
} else {
|
|
return syscall2(.pipe2, @intFromPtr(fd), 0);
|