Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to "github.com/edsrzf/mmap-go" for cross-platform mmap implementation #39

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

max-ipinfo
Copy link
Contributor

syscall.Mmap is not supported on Windows:

Error: lib/utils.go:86:23: undefined: syscall.Mmap
Error: lib/utils.go:86:70: undefined: syscall.PROT_READ
Error: lib/utils.go:86:89: undefined: syscall.MAP_SHARED
Error: lib/utils.go:90:16: undefined: syscall.Munmap

Testing

$ GOOS=windows GOARCH=386 go build -o mmdbctl-win386 .
$ go build .

…ntation

`syscall.Mmap` is not supported on Windows:
```
Error: lib/utils.go:86:23: undefined: syscall.Mmap
Error: lib/utils.go:86:70: undefined: syscall.PROT_READ
Error: lib/utils.go:86:89: undefined: syscall.MAP_SHARED
Error: lib/utils.go:90:16: undefined: syscall.Munmap
```
@max-ipinfo max-ipinfo merged commit 320c99c into master Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant