diff options
author | Felix Yan <felixonmars@archlinux.org> | 2020-07-24 05:35:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-23 17:35:55 -0400 |
commit | f21d2f77688f64bf3834da4e16dad4d7f316bf9c (patch) | |
tree | d7c5b6ebfe43e1ecd750cff1f43eacd31826d404 | |
parent | d7bb082fbf309d949e496a9af5e569a1a0faacdd (diff) | |
download | starlark-go-f21d2f77688f64bf3834da4e16dad4d7f316bf9c.tar.gz |
fix: mmap failure on linux after the android fix (#297)
Fixes #296
-rw-r--r-- | starlark/int_posix64.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/starlark/int_posix64.go b/starlark/int_posix64.go index d5d5dd2..19db123 100644 --- a/starlark/int_posix64.go +++ b/starlark/int_posix64.go @@ -62,8 +62,7 @@ func reserveAddresses(len int) uintptr { // Use syscall to avoid golang.org/x/sys/unix dependency. MAP_ANON := 0x1000 // darwin (and all BSDs) switch runtime.GOOS { - case "linux": - case "android": + case "linux", "android": MAP_ANON = 0x20 case "solaris": MAP_ANON = 0x100 |