Skip to content

Commit 4be63ae

Browse files
authored
Merge pull request #1916 from compnerd/clean-build
2 parents 275d478 + 6409804 commit 4be63ae

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Foundation/FoundationErrors.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
88
//
99

10+
#if os(Windows)
11+
import WinSDK
12+
#endif
13+
1014
/// File-system operation attempted on non-existent file.
1115
public var NSFileNoSuchFileError: Int { return CocoaError.Code.fileNoSuchFile.rawValue }
1216

Foundation/Process.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ open class Process: NSObject {
777777
// status
778778
#if os(Windows)
779779
open private(set) var processHandle: HANDLE = INVALID_HANDLE_VALUE
780-
open private(set) var processIdentifier: Int32 {
780+
open var processIdentifier: Int32 {
781781
return Int32(GetProcessId(processHandle))
782782
}
783783
open private(set) var isRunning: Bool = false

0 commit comments

Comments
 (0)