bigqueue icon indicating copy to clipboard operation
bigqueue copied to clipboard

undefined: syscall.Fdatasync

Open hanxuanliang opened this issue 4 years ago • 2 comments

@ 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?

hanxuanliang avatar Jul 31 '20 13:07 hanxuanliang

it works well without any option in macOS 10.15.5, maybe you can try to set $GOOS=darwin .

AImager avatar Aug 06 '20 05:08 AImager

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

hanxuanliang avatar Aug 15 '20 01:08 hanxuanliang