-
Notifications
You must be signed in to change notification settings - Fork 129
Guard errnos not available on FreeBSD #212
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
Conversation
|
@michael-yuji does this allow the package to build successfully on FreeBSD? |
yup it does! |
|
You can add the test changes here if they're not too extensive. Having all the changes together would be ideal. Thanks! |
|
Took the suggested changes and updated the PR to include fixes for tests. |
|
@swift-ci please test |
Tests/SystemTests/ErrnoTest.swift
Outdated
| XCTAssert(ENODATA == Errno.noData.rawValue) | ||
| XCTAssert(ENOLINK == Errno.noLink.rawValue) | ||
| XCTAssert(EPROTO == Errno.protocolError.rawValue) | ||
| #if !os(FreeBSD) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be more straightforward to have #if !os(Windows) ... #endif followed by #if !os(Windows) && !os(FreeBSD) ... #endif.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya... nested ifdefs are quite gross...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. It's better to keep a mind-numbing list as simple as possible =)
|
@swift-ci please test |
|
@swift-ci please test |
No description provided.