mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
std.Io.Threaded: fix fchmodat on linux with libc
This commit is contained in:
parent
6aa31cedb7
commit
4025af9c05
1 changed files with 1 additions and 1 deletions
|
|
@ -5153,7 +5153,7 @@ fn posixFchmodat(
|
|||
if (have_fchmodat_flags or flags == 0) {
|
||||
try current_thread.beginSyscall();
|
||||
while (true) {
|
||||
const rc = if (have_fchmodat_flags)
|
||||
const rc = if (have_fchmodat_flags or builtin.link_libc)
|
||||
posix.system.fchmodat(dir_fd, path, mode, flags)
|
||||
else
|
||||
posix.system.fchmodat(dir_fd, path, mode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue