Add Fuchsia support
Adds support for the x86_64-unknown-fuchsia target, which covers the Fuchsia operating system.
This commit is contained in:
parent
4879166194
commit
76bac5d33e
21 changed files with 548 additions and 38 deletions
|
@ -26,6 +26,7 @@ use libc;
|
|||
#[cfg(target_os = "openbsd")] pub use os::openbsd as platform;
|
||||
#[cfg(target_os = "solaris")] pub use os::solaris as platform;
|
||||
#[cfg(target_os = "emscripten")] pub use os::emscripten as platform;
|
||||
#[cfg(target_os = "fuchsia")] pub use os::fuchsia as platform;
|
||||
|
||||
#[macro_use]
|
||||
pub mod weak;
|
||||
|
@ -88,11 +89,11 @@ pub fn init() {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(not(any(target_os = "nacl", target_os = "emscripten")))]
|
||||
#[cfg(not(any(target_os = "nacl", target_os = "emscripten", target_os="fuchsia")))]
|
||||
unsafe fn reset_sigpipe() {
|
||||
assert!(signal(libc::SIGPIPE, libc::SIG_IGN) != !0);
|
||||
}
|
||||
#[cfg(any(target_os = "nacl", target_os = "emscripten"))]
|
||||
#[cfg(any(target_os = "nacl", target_os = "emscripten", target_os="fuchsia"))]
|
||||
unsafe fn reset_sigpipe() {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue