Workaround to land the rustup while we wait for rust-errno

This commit is contained in:
Lars Bergstrom 2016-01-14 14:56:09 -06:00
parent 3acfe5acdd
commit 5bf2ae81a5

View file

@ -252,3 +252,12 @@ pub fn run_content_process(token: String) {
script::script_thread::ScriptThread>(true);
}
// This is a workaround for https://github.com/rust-lang/rust/pull/30175 until
// https://github.com/lfairy/rust-errno/pull/5 lands, and should be removed once
// we update Servo with the rust-errno crate.
#[cfg(target_os = "android")]
#[no_mangle]
pub unsafe extern fn __errno_location() -> *mut i32 {
extern { fn __errno() -> *mut i32; }
__errno()
}