update wasm support with emscripten compilation; now using sbrk instead of wasm_memory_grow

This commit is contained in:
Daan Leijen 2021-10-01 15:05:01 -07:00
parent 076f815cec
commit 679aad0659
4 changed files with 56 additions and 9 deletions

View file

@ -479,7 +479,7 @@ static void mi_stat_process_info(mi_msecs_t* elapsed, mi_msecs_t* utime, mi_msec
*page_faults = (size_t)info.PageFaultCount;
}
#elif defined(__unix__) || defined(__unix) || defined(unix) || defined(__APPLE__) || defined(__HAIKU__)
#elif !defined(__wasi__) && (defined(__unix__) || defined(__unix) || defined(unix) || defined(__APPLE__) || defined(__HAIKU__))
#include <stdio.h>
#include <unistd.h>
#include <sys/resource.h>