mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 18:53:29 +00:00
syscall: use wasi-libc tables for wasm/js target
Instead of using fake tables for errno and others, use the ones that correspond to wasi-libc.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
//go:build wasip1 || js
|
||||
|
||||
package syscall
|
||||
|
||||
// Use a go:extern definition to access the errno from wasi-libc
|
||||
//
|
||||
//go:extern errno
|
||||
var libcErrno Errno
|
||||
Reference in New Issue
Block a user