Skip to content

Commit 5f07fb0

Browse files
committed
Fix Foundation devel patch on CI for upstream changes
1 parent c6e4e84 commit 5f07fb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift-android-foundation-devel.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ index 9136123..418f5cf 100644
1111
--- a/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift
1212
+++ b/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift
1313
@@ -995,7 +995,7 @@ enum _FileOperations {
14-
}
1514

15+
#if !os(WASI) // WASI doesn't have fchmod for now
1616
// Copy permissions
1717
- if fchmod(dstFD, statInfo.st_mode) != 0 {
1818
+ if fchmod(dstFD, mode_t(statInfo.st_mode)) != 0 {
1919
try delegate.throwIfNecessary(errno, srcPath(), dstPath())
2020
}
21-
} else {
21+
#endif

0 commit comments

Comments
 (0)