Skip to content

Commit

Permalink
fix: cause mmap: bad file descriptor on android (google#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr328 authored Jul 22, 2020
1 parent 0ec63f1 commit d7bb082
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions starlark/int_posix64.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7bb082

Please sign in to comment.