Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed POSIXError for Linux #122

Merged
merged 4 commits into from Apr 15, 2019
Merged

Fixed POSIXError for Linux #122

merged 4 commits into from Apr 15, 2019

Conversation

colemancda
Copy link
Member

What does this PR Do?

Should not use POSIXError.Code on Linux since it is currently broken.
apple/swift-corelibs-foundation#2113

Where should the reviewer start?

POSIXError.swift

Sweet giphy showing how you feel about this PR

Giphy

Should not use `POSIXError.Code` on Linux since it is currently broken.

apple/swift-corelibs-foundation#2113
Use `POSIXErrorCode` to validate `errno` value.

apple/swift-corelibs-foundation#2113
@colemancda
Copy link
Member Author

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 apple/swift@8157194#diff-c86969eead9d9f63ad0faa3e75802e66R268 and apple/swift-corelibs-foundation#933 (comment)

@colemancda
Copy link
Member Author

@CodaFi Any ideas why POSIXErrorCode is an unresolved identifier?

apple/swift-corelibs-foundation#933 (comment)

@colemancda
Copy link
Member Author

Waiting on apple/swift#24028 to be merged for this to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant