mirror of
https://github.com/servo/servo.git
synced 2025-07-05 06:23:39 +01:00
Auto merge of #18737 - paulrouget:rm_errno_location, r=emilio
remove android specific workaround https://github.com/lfairy/rust-errno/pull/5 has landed. I tested on Android. It runs. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18737) <!-- Reviewable:end -->
This commit is contained in:
commit
cfca26a7e0
1 changed files with 0 additions and 10 deletions
|
@ -650,16 +650,6 @@ 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()
|
||||
}
|
||||
|
||||
#[cfg(all(not(target_os = "windows"), not(target_os = "ios")))]
|
||||
fn create_sandbox() {
|
||||
ChildSandbox::new(content_process_sandbox_profile()).activate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue