diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2022-09-14 17:08:15 +0200 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-09-15 06:23:50 +0000 |
| commit | 7c3284401fcd3c6cb4cb747e3332217105d007c0 (patch) | |
| tree | f5ec532b865553fd8c1c1a731e6542bd566df757 /src/syscall | |
| parent | 972870da11bb4ddd3df393473c494bd2b546cc56 (diff) | |
| download | go-7c3284401fcd3c6cb4cb747e3332217105d007c0.tar.xz | |
cmd, syscall: use syscall.Mmap on solaris for Go ≥ 1.20
CL 413374 added syscall.Mmap on solaris. Use it in cmd/compile and
cmd/link if the bootstrap toolchain is Go ≥ 1.20.
For #52875
For #54265
Change-Id: I9a0534bf97926eecf0c6f1f9218e855344ba158f
Reviewed-on: https://go-review.googlesource.com/c/go/+/430496
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Diffstat (limited to 'src/syscall')
| -rw-r--r-- | src/syscall/zerrors_solaris_amd64.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/syscall/zerrors_solaris_amd64.go b/src/syscall/zerrors_solaris_amd64.go index fb25dacee4..8e77bf79c6 100644 --- a/src/syscall/zerrors_solaris_amd64.go +++ b/src/syscall/zerrors_solaris_amd64.go @@ -594,6 +594,7 @@ const ( MAP_ALIGN = 0x200 MAP_ANON = 0x100 MAP_ANONYMOUS = 0x100 + MAP_FILE = 0x0 MAP_FIXED = 0x10 MAP_INITDATA = 0x800 MAP_NORESERVE = 0x40 |
