build: check runtime link file

This commit is contained in:
visualfc
2024-06-07 20:33:31 +08:00
parent 92aee9b69c
commit 878b395e20
4 changed files with 33 additions and 10 deletions

15
c/c_linux.go Normal file
View File

@@ -0,0 +1,15 @@
//go:build linux
// +build linux
package c
import _ "unsafe"
//go:linkname Stdin stdin
var Stdin FilePtr
//go:linkname Stdout stdout
var Stdout FilePtr
//go:linkname Stderr stderr
var Stderr FilePtr