aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Yan <felixonmars@archlinux.org>2020-07-24 05:35:55 +0800
committerGitHub <noreply@github.com>2020-07-23 17:35:55 -0400
commitf21d2f77688f64bf3834da4e16dad4d7f316bf9c (patch)
treed7c5b6ebfe43e1ecd750cff1f43eacd31826d404
parentd7bb082fbf309d949e496a9af5e569a1a0faacdd (diff)
downloadstarlark-go-f21d2f77688f64bf3834da4e16dad4d7f316bf9c.tar.gz
fix: mmap failure on linux after the android fix (#297)
Fixes #296
-rw-r--r--starlark/int_posix64.go3
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