Fix all the imports to run nginx

This commit is contained in:
Brandon Fish
2019-01-24 23:58:54 -06:00
parent 25439b4df3
commit 5209b5a558
6 changed files with 695 additions and 48 deletions

View File

@ -99,6 +99,16 @@ pub extern "C" fn _difftime(t0: u32, t1: u32) -> c_int {
(t0 - t1) as _
}
pub extern "C" fn _gmtime_r(one: i32, two: i32, ctx: &mut Ctx) -> i32 {
debug!("emscripten::_gmtime_r");
-1
}
pub extern "C" fn _mktime(one: i32, ctx: &mut Ctx) -> i32 {
debug!("emscripten::_mktime");
-1
}
#[repr(C)]
struct guest_tm {
pub tm_sec: c_int, // 0