For some platforms WAMR gets compiled with `CONFIG_HAS_CLOCK_NANOSLEEP=1`, while `clock_nanosleep` is not present at the platform, which causes compilation error. Add check for macro `DISABLE_CLOCK_NANOSLEEP` to resolve the issue, only when the macro isn't defined can the macro `CONFIG_HAS_CLOCK_NANOSLEEP` take effect.
This directory consists of selected files copied from the [src/libemulator] directory in the cloudabi-utils repository, with minor modifications, along with the accompanying LICENSE file from that repository.
The modifications are marked with WASMTIME_* preprocessor macros.
The files were copied at git revision 223dadc53248552db43e012c67ed08cf416a2b12 which is dated Tue Jun 25 17:22:07 2019 -0700 .