PureSwift / Bluetooth

Pure Swift Bluetooth library
http://pureswift.github.io/Bluetooth/
MIT License
174 stars 24 forks source link

Fixed `POSIXError` for Linux #122

Closed colemancda closed 5 years ago

colemancda commented 5 years ago

What does this PR Do?

Should not use POSIXError.Code on Linux since it is currently broken. https://github.com/apple/swift-corelibs-foundation/pull/2113

Where should the reviewer start?

POSIXError.swift

Sweet giphy showing how you feel about this PR

Giphy

colemancda commented 5 years ago

Failing on Linux

POSIXError.swift:25:26: error: use of unresolved identifier 'POSIXErrorCode'
        guard let code = POSIXErrorCode(rawValue: errno)

That should be part of Glibc per https://github.com/apple/swift/commit/8157194e83ea49a3fbadefaf04395b1b15d72474#diff-c86969eead9d9f63ad0faa3e75802e66R268 and https://github.com/apple/swift-corelibs-foundation/pull/933#issuecomment-292637593

colemancda commented 5 years ago

@codafi Any ideas why POSIXErrorCode is an unresolved identifier?

https://github.com/apple/swift-corelibs-foundation/pull/933#issuecomment-292637593

colemancda commented 5 years ago

Waiting on https://github.com/apple/swift/pull/24028 to be merged for this to work.