edsrzf / mmap-go

A portable mmap package for Go
BSD 3-Clause "New" or "Revised" License
938 stars 129 forks source link

Fix build on WASM #35

Closed ajalab closed 2 weeks ago

ajalab commented 2 weeks ago

This PR adds mmap_wasm.go file to allow dependent projects to compile for wasm architecture. It should resolve the issue #24.

The added file is mostly equivalent to mmap_plan9.go introduced in #25, except for the use of syscall.ENOTSUP. This errno is used by the standard library such as syscall.AllThreadsSyscall.