jhunters / bigqueue

Golang implements for BigQueue
Apache License 2.0
57 stars 23 forks source link

undefined: syscall.Fdatasync #10

Open hanxuanliang opened 4 years ago

hanxuanliang commented 4 years ago

@ macOS 10.15.6

error:

/Users/xxx/go/pkg/mod/github.com/jhunters/bigqueue@v1.0.1/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?

AImager commented 4 years ago

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

hanxuanliang commented 4 years ago

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