mirror of
https://github.com/wazero/wazero
synced 2026-06-21 14:12:37 +00:00
23 lines
449 B
Go
23 lines
449 B
Go
//go:build !(linux || darwin || freebsd || netbsd || dragonfly || solaris || windows)
|
|
|
|
package platform
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
)
|
|
|
|
var errUnsupported = fmt.Errorf("mmap unsupported on GOOS=%s. Use interpreter instead.", runtime.GOOS)
|
|
|
|
func munmapCodeSegment(code []byte) error {
|
|
panic(errUnsupported)
|
|
}
|
|
|
|
func mmapCodeSegment(size int) ([]byte, error) {
|
|
panic(errUnsupported)
|
|
}
|
|
|
|
func MprotectRX(b []byte) (err error) {
|
|
panic(errUnsupported)
|
|
}
|