Skip to content

Commit 8603acd

Browse files
committed
Apply Alex's 32-bit patch for Foundation to the devel branch on the CI too
1 parent c9ffbbb commit 8603acd

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

swift-android-foundation-devel.patch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,24 @@ index 2b5b5e05..60f1dde8 100644
3939
],
4040
resources: [
4141
.copy("Foundation/Resources")
42+
commit 4339393f2c1f3bceaf20bc2c25ee828a2e0394aa
43+
Author: Alex Lorenz <[email protected]>
44+
Date: Thu Dec 12 07:34:34 2024 -0800
45+
46+
[android] fix 32-bit build (#1086)
47+
48+
Regression after bb3fccfa360d00f63999ac8faf6ba37224ce5174
49+
50+
diff --git a/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift b/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift
51+
index 9136123..418f5cf 100644
52+
--- a/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift
53+
+++ b/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift
54+
@@ -995,7 +995,7 @@ enum _FileOperations {
55+
}
56+
57+
// Copy permissions
58+
- if fchmod(dstFD, statInfo.st_mode) != 0 {
59+
+ if fchmod(dstFD, mode_t(statInfo.st_mode)) != 0 {
60+
try delegate.throwIfNecessary(errno, srcPath(), dstPath())
61+
}
62+
} else {

0 commit comments

Comments
 (0)