swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.6k stars 10.37k forks source link

[SR-10485] Use of unresolved identifier 'POSIXErrorCode' on Linux #52885

Closed colemancda closed 5 years ago

colemancda commented 5 years ago
Previous ID SR-10485
Radar None
Original Reporter @colemancda
Type Bug
Status Resolved
Resolution Done
Environment Swift 5.0 Ubuntu 18.04
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Standard Library | |Labels | Bug | |Assignee | @colemancda | |Priority | Medium | md5: 3d74ff2aa87c46e95add0f1635280242

Issue Description:

`POSIXErrorCode` should be defined for Darwin and Linux since https://github.com/apple/swift/commit/8157194e83ea49a3fbadefaf04395b1b15d72474#diff-c86969eead9d9f63ad0faa3e75802e66R268

For some reason it is not defined even when importing Glibc on Linux.

colemancda commented 5 years ago

Fixed in https://github.com/apple/swift/pull/24028

colemancda commented 5 years ago

Affects

https://github.com/apple/swift-corelibs-foundation/pull/2113

https://github.com/PureSwift/Bluetooth/pull/122

colemancda commented 5 years ago

Fixed in https://github.com/apple/swift/commit/b6ca2fb7865cbda41724e057d99a259e69d938ff