[emscripten] Disable code paths that don't work on emscripten
This commit is contained in:
parent
ad91873cb6
commit
60599df03b
6 changed files with 13 additions and 11 deletions
|
@ -83,11 +83,11 @@ pub fn init() {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "nacl"))]
|
||||
#[cfg(not(any(target_os = "nacl", target_os = "emscripten")))]
|
||||
unsafe fn reset_sigpipe() {
|
||||
assert!(signal(libc::SIGPIPE, libc::SIG_IGN) != !0);
|
||||
}
|
||||
#[cfg(target_os = "nacl")]
|
||||
#[cfg(any(target_os = "nacl", target_os = "emscripten"))]
|
||||
unsafe fn reset_sigpipe() {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue