From 576370c31264fcedfb43891142685b74e3768d13 Mon Sep 17 00:00:00 2001 From: Aza Maulana Date: Sun, 13 Mar 2022 01:12:45 +0700 Subject: [PATCH] fix(os): undefined syscall.Getrusage on wasm --- os_windows.go => os_non_unix.go | 2 +- unix.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename os_windows.go => os_non_unix.go (55%) diff --git a/os_windows.go b/os_non_unix.go similarity index 55% rename from os_windows.go rename to os_non_unix.go index daf4c77..b5ef86d 100644 --- a/os_windows.go +++ b/os_non_unix.go @@ -1,6 +1,6 @@ package lua func clock(l *State) int { - Errorf(l, "os.clock not yet supported on Windows") + Errorf(l, "os.clock not yet supported") panic("unreachable") } diff --git a/unix.go b/unix.go index 0c65651..c1d7db3 100644 --- a/unix.go +++ b/unix.go @@ -1,4 +1,4 @@ -// +build !windows +// +build !windows,!wasm package lua