diff options
author | Kr328 <kr328app@outlook.com> | 2020-07-23 00:47:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 12:47:44 -0400 |
commit | d7bb082fbf309d949e496a9af5e569a1a0faacdd (patch) | |
tree | bff63a2a8c8d0e4113ff2b0f6cfec492075bb03f | |
parent | 0ec63f134c7d8f211a234db22fd2184ab8c891e8 (diff) | |
download | starlark-go-d7bb082fbf309d949e496a9af5e569a1a0faacdd.tar.gz |
fix: cause `mmap: bad file descriptor` on android (#295)
-rw-r--r-- | starlark/int_posix64.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/starlark/int_posix64.go b/starlark/int_posix64.go index f685736..d5d5dd2 100644 --- a/starlark/int_posix64.go +++ b/starlark/int_posix64.go @@ -63,6 +63,7 @@ func reserveAddresses(len int) uintptr { MAP_ANON := 0x1000 // darwin (and all BSDs) switch runtime.GOOS { case "linux": + case "android": MAP_ANON = 0x20 case "solaris": MAP_ANON = 0x100 |