Skip to content

Commit 79a925d

Browse files
committed
Remove Foundation patch from CI for upstream fix
1 parent a57758e commit 79a925d

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

swift-android-foundation-except-release.patch

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -38,34 +38,3 @@ index 712d9dee..2483c14e 100644
3838
#elseif os(WASI)
3939
import WASILibc
4040
#elseif canImport(CRT)
41-
diff --git a/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift b/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift
42-
index 9567f65..06f51b6 100644
43-
--- a/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift
44-
+++ b/swift-foundation/Sources/FoundationEssentials/FileManager/FileOperations.swift
45-
@@ -986,14 +986,26 @@ enum _FileOperations {
46-
}
47-
48-
// Copy modification date
49-
+ #if canImport(Android)
50-
+ let value = statInfo.st_mtim
51-
+ #else
52-
let value = timeval(tv_sec: statInfo.st_mtim.tv_sec, tv_usec: statInfo.st_mtim.tv_nsec / 1000)
53-
+ #endif
54-
var tv = (value, value)
55-
try withUnsafePointer(to: &tv) {
56-
+ #if canImport(Android)
57-
+ try $0.withMemoryRebound(to: timespec.self, capacity: 2) {
58-
+ if futimens(dstFD, $0) != 0 {
59-
+ try delegate.throwIfNecessary(errno, srcPath(), dstPath())
60-
+ }
61-
+ }
62-
+ #else
63-
try $0.withMemoryRebound(to: timeval.self, capacity: 2) {
64-
if futimes(dstFD, $0) != 0 {
65-
try delegate.throwIfNecessary(errno, srcPath(), dstPath())
66-
}
67-
}
68-
+ #endif
69-
}
70-
71-
// Copy permissions

0 commit comments

Comments
 (0)