1
Fork 0

[emscripten] Disable code paths that don't work on emscripten

This commit is contained in:
Jan-Erik Rediger 2016-08-09 01:41:51 +02:00
parent ad91873cb6
commit 60599df03b
6 changed files with 13 additions and 11 deletions

View file

@ -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() {}
}