Skip to content

Correctly use #[cfg()] on Redox #63714

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

Closed
wants to merge 1 commit into from
Closed

Conversation

josephlr
Copy link
Contributor

Redox does not implement setgroups. The current implementation tries
to work around this, but will still fail to build if libc::setgroups is
not defined.

This means libstd cannot compile for Redox. This change fixes this
by using #[cfg(...)] instead of if cfg!(...).

Unblocks #63521

Redox does not implement `setgroups`. The current implementation tries
to work around this, but will still fail to build if libc::setgroups is
not defined.

This means libstd cannot compile for Redox. This change fixes this
by using `#[cfg(...)]` instead of `if cfg!(...)`.
@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 19, 2019
@josephlr
Copy link
Contributor Author

Just noticed that this is getting fixed in #63521, closing.

@josephlr josephlr closed this Aug 19, 2019
@josephlr josephlr deleted the redox branch August 19, 2019 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants