-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add support for Fuchsia #432
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,9 @@ s! { | |
pub ai_protocol: ::c_int, | ||
pub ai_addrlen: socklen_t, | ||
|
||
#[cfg(any(target_os = "linux", target_os = "emscripten"))] | ||
#[cfg(any(target_os = "linux", | ||
target_os = "emscripten", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Late nitpick - couldn't this be:
rather than having the android entry be separate at line 63? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tedsta Seems reasonable. This isn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So it turns out that doesn't work, because the structure is serialized, and order matters. Reverted. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whoops |
||
target_os = "fuchsia"))] | ||
pub ai_addr: *mut ::sockaddr, | ||
|
||
pub ai_canonname: *mut c_char, | ||
|
@@ -858,7 +860,8 @@ extern { | |
|
||
cfg_if! { | ||
if #[cfg(any(target_os = "linux", | ||
target_os = "emscripten"))] { | ||
target_os = "emscripten", | ||
target_os = "fuchsia"))] { | ||
mod linux; | ||
pub use self::linux::*; | ||
} else if #[cfg(target_os = "android")] { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So right now this is under linux, because that's where musl lives, and because the diff is really minimal, but I'm not sure that's the best long-term structure. I think it might be better for musl to be a toplevel under notbsd, and have both linux-musl and fuschsia go there, with additional fuchsia
#[cfg]
items there as needed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine for now, but if the two start to diverge we can just copy musl over and update fuschia as necessary