diff options
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r-- | components/servo/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs index 7289cdbcdd6..1dc17b0c4e3 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -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() +} |