runtime/internal/clite/os: fix stat for macOS

This commit is contained in:
visualfc
2025-05-16 20:36:43 +08:00
parent ffc1f712a3
commit c8fb7eafa0
4 changed files with 32 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
//go:build !darwin
// +build !darwin
package os
import (
_ "unsafe"
c "github.com/goplus/llgo/runtime/internal/clite"
)
//go:linkname Stat C.stat
func Stat(path *c.Char, buf *StatT) c.Int
//go:linkname Lstat C.lstat
func Lstat(path *c.Char, buf *StatT) c.Int