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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user