Skip to content
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

refactor: cfg for socket/sockopt.rs #2225

Merged
merged 1 commit into from
Nov 26, 2023

Conversation

SteveLauC
Copy link
Member

What does this PR do

cfg for socket/sockopt.rs

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

@@ -7,7 +7,6 @@ use cfg_if::cfg_if;
use libc::{self, c_int, c_void, socklen_t};
use std::ffi::{OsStr, OsString};
use std::mem::{self, MaybeUninit};
#[cfg(target_family = "unix")]
Copy link
Member

Choose a reason for hiding this comment

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

Note Fuchsia may not be considered Unix forever. rust-lang/rust#58590

Copy link
Member Author

Choose a reason for hiding this comment

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

Get it, thanks for showing me this!

@asomers asomers added this pull request to the merge queue Nov 26, 2023
Merged via the queue into nix-rust:master with commit 4e5f089 Nov 26, 2023
34 checks passed
@SteveLauC SteveLauC deleted the cfg_socket_sockopt branch November 26, 2023 23:29
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