From 65a906baf18fc035e6ddeb869c65b4ff5e209972 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sat, 20 Mar 2021 11:32:13 -0700 Subject: [PATCH] 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. --- Sources/System/Internals/WindowsSyscallAdapters.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/System/Internals/WindowsSyscallAdapters.swift b/Sources/System/Internals/WindowsSyscallAdapters.swift index 5aa075b..36acace 100644 --- a/Sources/System/Internals/WindowsSyscallAdapters.swift +++ b/Sources/System/Internals/WindowsSyscallAdapters.swift @@ -23,7 +23,8 @@ internal func open( @inline(__always) internal func open( - _ path: UnsafePointer, _ oflag: Int32, _ mode: CModeT + _ path: UnsafePointer, _ oflag: Int32, + _ mode: CInterop.Mode ) -> CInt { // TODO(compnerd): Apply read/write permissions var fh: CInt = -1