Skip to content

Commit 65a906b

Browse files
authored
Internals: replace CModeT with CInterop.Mode (#40)
The typealias was renamed but the reference to it was not fully removed. This updates the instance enabling building System on Windows.
1 parent a973b97 commit 65a906b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/System/Internals/WindowsSyscallAdapters.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ internal func open(
2323

2424
@inline(__always)
2525
internal func open(
26-
_ path: UnsafePointer<CInterop.PlatformChar>, _ oflag: Int32, _ mode: CModeT
26+
_ path: UnsafePointer<CInterop.PlatformChar>, _ oflag: Int32,
27+
_ mode: CInterop.Mode
2728
) -> CInt {
2829
// TODO(compnerd): Apply read/write permissions
2930
var fh: CInt = -1

0 commit comments

Comments
 (0)