diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig index b8deda5845..3f47272c12 100644 --- a/lib/std/Io/Threaded.zig +++ b/lib/std/Io/Threaded.zig @@ -4704,7 +4704,7 @@ fn dirCreateFileAtomic( try syscall.checkCancel(); continue; }, - .ISDIR, .NOENT => { + .ISDIR, .NOENT, .OPNOTSUPP => { // Ambiguous error code. It might mean the file system // does not support O_TMPFILE. Therefore, we must fall // back to not using O_TMPFILE.