Add WASI wasip1 support

Fix building when the new `wasip1` port is being used.
This is a new target that will be introduced by go 1.21.

For more details https://github.com/golang/go/issues/58141

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
This commit is contained in:
Flavio Castelli 2023-05-31 19:17:20 +02:00
parent 352781de90
commit 7165f5e779
No known key found for this signature in database
GPG Key ID: F1020D69DC004F48
1 changed files with 8 additions and 0 deletions

8
terminal_check_wasip1.go Normal file
View File

@ -0,0 +1,8 @@
//go:build wasip1
// +build wasip1
package logrus
func isTerminal(fd int) bool {
return false
}