Supports compilation with GOOS=plan9 (#1603)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
12
internal/sysfs/unlink_plan9.go
Normal file
12
internal/sysfs/unlink_plan9.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package sysfs
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
|
||||
"github.com/tetratelabs/wazero/experimental/sys"
|
||||
)
|
||||
|
||||
func unlink(name string) sys.Errno {
|
||||
err := syscall.Remove(name)
|
||||
return sys.UnwrapOSError(err)
|
||||
}
|
||||
Reference in New Issue
Block a user