Skip to content

Exclude UContext::get(),set() on musl, not available from libc. #371

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
May 20, 2016

Conversation

justinlatimer
Copy link
Contributor

It looks like libc doesn't provide libc::getcontext or libc::setcontext when targeting musl, so I've excluded the ucontext module from being built when targeting musl which allows the module to be built successfully.

Thanks!

@kamalmarhubi
Copy link
Member

Could you just disable those methods on the UContext type instead? The struct itself is defined for musl, so it'd be nice to still have it. (See rust-lang/libc#255 (comment) for a tiny bit of context.)

@kamalmarhubi
Copy link
Member

r? @fiveop

@justinlatimer justinlatimer changed the title Exclude ucontext on musl, not available from libc. Exclude UContext::get(),set() on musl, not available from libc. May 18, 2016
@justinlatimer
Copy link
Contributor Author

@kamalmarhubi updated to only exclude functions that don't compile (and their imports) + squashed.

Thanks!

@kamalmarhubi
Copy link
Member

Thanks @justinlatimer!

@homu r+ e3e92d7

@homu
Copy link
Contributor

homu commented May 20, 2016

⚡ Test exempted - status

@homu homu merged commit e3e92d7 into nix-rust:master May 20, 2016
homu added a commit that referenced this pull request May 20, 2016
Exclude UContext::get(),set() on musl, not available from libc.

It looks like ``libc`` doesn't provide ``libc::getcontext`` or ``libc::setcontext`` when targeting musl, so I've excluded the ``ucontext`` module from being built when targeting musl which allows the module to be built successfully.

Thanks!
@kamalmarhubi
Copy link
Member

@fiveop I decided that since this was more conservative that the original where the struct was also removed, it was fine. Hope that makes sense!

@justinlatimer justinlatimer deleted the musl branch May 22, 2016 21:24
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