mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 06:53:40 +00:00
runtime: fix linker error: os.sigpipe
This commit is contained in:
@@ -95,3 +95,9 @@ func now() (sec int64, nsec int32, mono int64) {
|
|||||||
nsec = int32(mono - sec*(1000*1000*1000))
|
nsec = int32(mono - sec*(1000*1000*1000))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Copied from the Go runtime source code.
|
||||||
|
//go:linkname os_sigpipe os.sigpipe
|
||||||
|
func os_sigpipe() {
|
||||||
|
runtimePanic("too many writes on closed pipe")
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user