bigqueue
bigqueue copied to clipboard
undefined: syscall.Fdatasync
@ macOS 10.15.6
error:
/Users/xxx/go/pkg/mod/github.com/jhunters/[email protected]/mmap_unix.go:13:9: undefined: syscall.Fdatasync
I see there is support for Darwin in issue, but why does it recognize Unix? What do I need to configure?
it works well without any option in macOS 10.15.5, maybe you can try to set $GOOS=darwin .
I use
GOOS=darwin GOARCH=amd64 go build example.go
And modify the GOOS
to darwin
, but the problem still arises.
go version: go version go1.14.2 darwin/amd64