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.
This commit is contained in:
Saleem Abdulrasool authored and GitHub committed 2021-03-20 12:32:13 -06:00
1 parent a973b97147
commit 65a906baf1
1 file changed
+2 -1
@@ -23,7 +23,8 @@ internal func open(
@inline(__always)
internal func open(
_ path: UnsafePointer<CInterop.PlatformChar>, _ oflag: Int32, _ mode: CModeT
_ path: UnsafePointer<CInterop.PlatformChar>, _ oflag: Int32,
_ mode: CInterop.Mode
) -> CInt {
// TODO(compnerd): Apply read/write permissions
var fh: CInt = -1