Skip to content

refactor: cfg for fcntl/fetures/ifaddrs/lib/poll/sched/time #2215

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 2 commits into from
Nov 27, 2023

Conversation

SteveLauC
Copy link
Member

What does this PR do

Apply the cfg aliases for:

  • fcntl.rs
  • features.rs
  • ifaddrs.rs
  • lib.rs
  • poll.rs
  • scehed.rs
  • time.rs

Ref: #2188

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments
  • A change log has been added if this PR modifies nix's API

src/features.rs Outdated
@@ -98,8 +98,7 @@ mod os {
}

#[cfg(any(
target_os = "dragonfly", // Since ???
target_os = "freebsd", // Since 10.0
freebsdlike, // FreeBSD since ??? DragonFlyBSD since 10.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
freebsdlike, // FreeBSD since ??? DragonFlyBSD since 10.0
freebsdlike, // FreeBSD since 10.0 DragonFlyBSD since ???

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching it, done

@SteveLauC
Copy link
Member Author

I have given this PR a check, the changes are ok, let me merge this so that I can clear the cfg for netbsdlike

@SteveLauC SteveLauC added this pull request to the merge queue Nov 27, 2023
Merged via the queue into nix-rust:master with commit 2f810de Nov 27, 2023
@SteveLauC SteveLauC deleted the cfg_fcntl branch November 27, 2023 00:36
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