Skip to content

dispatch: include time.h on windows #430

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
Nov 26, 2018

Conversation

compnerd
Copy link
Member

time.h is needed on Windows to ensure that we have a definition of
timespec. This is needed when building the swift SDK overlay. It
seems that when cross-compiling, we were getting lucky with the
timespec definition being provided by some other header being
included. This repairs the build of libdispatch's swift SDK overlay on
Windows targeting Windows.

time.h is needed on Windows to ensure that we have a definition of
`timespec`.  This is needed when building the swift SDK overlay.  It
seems that when cross-compiling, we were getting lucky with the
`timespec` definition being provided by some other header being
included.  This repairs the build of libdispatch's swift SDK overlay on
Windows targeting Windows.
@compnerd
Copy link
Member Author

CC: @das @MadCoder @ktopley-apple

@compnerd
Copy link
Member Author

@swift-ci please test

@ktopley-apple ktopley-apple merged commit 619775e into swiftlang:master Nov 26, 2018
@compnerd compnerd deleted the it-is-time branch November 26, 2018 17:56
rokhinip pushed a commit that referenced this pull request Nov 5, 2021
dispatch: include `time.h` on windows
Signed-off-by: Kim Topley <ktopley@apple.com>
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.

2 participants