mirror of
https://github.com/fluencelabs/sqlite
synced 2025-04-24 17:02:14 +00:00
feat!: add workaround for wasi-libc reactor/command model (#13)
* feat: add workaround for wasi-libc reactor/command model
This commit is contained in:
parent
c7ea490286
commit
c1fa069dcb
@ -65,7 +65,10 @@ void write_le_int(unsigned char *array, unsigned int offset, unsigned int value)
|
|||||||
array[offset + 3] = (value >> 24) & 0xff;
|
array[offset + 3] = (value >> 24) & 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern void __wasm_call_ctors();
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
// the main purpose of this empty main is to initialize WASI subsystem
|
__wasm_call_ctors(); // for more details see https://github.com/WebAssembly/WASI/issues/471
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user