Fix compilation errors on zephyr platform (#2777)

Add dummy korp_rwlock struct and fix os_dir_stream definition on
platform zephyr/riot/rt-thread/alios to fix the compilation errors.
This commit is contained in:
Wenyong Huang
2023-11-16 18:39:41 +08:00
committed by GitHub
parent 503d94ace2
commit a3349cc8c1
5 changed files with 46 additions and 4 deletions

View File

@ -265,8 +265,18 @@ iwasm_init(void)
iwasm_main, NULL, NULL, NULL, MAIN_THREAD_PRIORITY, 0, K_NO_WAIT);
return tid ? true : false;
}
#if KERNEL_VERSION_NUMBER < 0x030400 /* version 3.4.0 */
void
main(void)
{
iwasm_init();
}
#else
int
main(void)
{
iwasm_init();
return 0;
}
#endif