Skip to content

Basic: guard inclusion of unistd.h on non-Unices #18873

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

Merged
merged 1 commit into from
Aug 21, 2018

Conversation

compnerd
Copy link
Member

unistd.h is a Unix specific header. Ensure that we do not try to include it on
non-unix environments (i.e. Windows). This attempts to restore the Windows
build once again.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

unistd.h is a Unix specific header.  Ensure that we do not try to include it on
non-unix environments (i.e. Windows).  This attempts to restore the Windows
build once again.
@compnerd
Copy link
Member Author

@swift-ci please test and merge

@gottesmm
Copy link
Contributor

Question. Why wouldn't you have unistd if LLVM is on Linux? Btw great branch name.

@gottesmm
Copy link
Contributor

I meant unix, not linux. ; ). After all, everone knows... linux is not unix? ; p.

@gottesmm
Copy link
Contributor

i.e. I am really just asking if the HAVE_UNISTD check is redundant.

@swift-ci swift-ci merged commit 1dce4aa into swiftlang:master Aug 21, 2018
@compnerd compnerd deleted the this-is-unix branch September 12, 2018 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants