File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,13 @@ extension _RawBuffer {
8080 internal static func create( minimumCapacity: Int ) -> Storage {
8181 Storage . create (
8282 minimumCapacity: minimumCapacity,
83- makingHeaderWith: { $0. capacity }
83+ makingHeaderWith: {
84+ #if os(OpenBSD)
85+ minimumCapacity
86+ #else
87+ $0. capacity
88+ #endif
89+ }
8490 ) as! Storage
8591 }
8692 }
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ internal func system_confstr(
191191internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192192internal let SYSTEM_DT_DIR = DT_DIR
193193internal typealias system_dirent = dirent
194- #if os(Linux) || os(Android) || os(FreeBSD)
194+ #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
195195internal typealias system_DIRPtr = OpaquePointer
196196#else
197197internal typealias system_DIRPtr = UnsafeMutablePointer < DIR >
You can’t perform that action at this time.
0 commit comments