From 2eb5ca1e4819d9e16ae284c62637791240032b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Legan=C3=A9s-Combarro=20=27piranna?= Date: Sun, 19 May 2019 20:16:00 +0200 Subject: [PATCH] `_gai_strerror()` --- lib/emscripten/src/emscripten_target.rs | 6 ++++++ lib/emscripten/src/lib.rs | 1 + 2 files changed, 7 insertions(+) diff --git a/lib/emscripten/src/emscripten_target.rs b/lib/emscripten/src/emscripten_target.rs index 44820ad63..df3319ab8 100644 --- a/lib/emscripten/src/emscripten_target.rs +++ b/lib/emscripten/src/emscripten_target.rs @@ -197,6 +197,12 @@ pub fn ___gxx_personality_v0( debug!("emscripten::___gxx_personality_v0"); 0 } + +pub fn _gai_strerror(_ctx: &mut Ctx, _ecode: i32) -> i32 { + debug!("emscripten::_gai_strerror({})", _ecode); + 0 +} + #[cfg(target_os = "linux")] pub fn _getdtablesize(_ctx: &mut Ctx) -> i32 { debug!("emscripten::getdtablesize"); diff --git a/lib/emscripten/src/lib.rs b/lib/emscripten/src/lib.rs index 828b3eb6e..039ad2af6 100644 --- a/lib/emscripten/src/lib.rs +++ b/lib/emscripten/src/lib.rs @@ -776,6 +776,7 @@ pub fn generate_emscripten_env(globals: &mut EmscriptenGlobals) -> ImportObject "_pthread_rwlock_init" => func!(crate::emscripten_target::_pthread_rwlock_init), "_pthread_rwlock_wrlock" => func!(crate::emscripten_target::_pthread_rwlock_wrlock), "___gxx_personality_v0" => func!(crate::emscripten_target::___gxx_personality_v0), + "_gai_strerror" => func!(crate::emscripten_target::_gai_strerror), "_getdtablesize" => func!(crate::emscripten_target::_getdtablesize), "_gethostbyaddr" => func!(crate::emscripten_target::_gethostbyaddr), "_gethostbyname_r" => func!(crate::emscripten_target::_gethostbyname_r),