diff options
author | Clément Chigot <clement.chigot@atos.net> | 2018-09-28 14:54:43 +0200 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2018-10-03 20:58:16 +0000 |
commit | 9f78aa77443389d61a3ef910a1c3d4628999d82c (patch) | |
tree | 9ebae36f3d06af681d299bfee6c748de739ef413 /src/runtime/netpoll.go | |
parent | c216c3aa9fe34cd81e9d4bcc28c64257064eddc9 (diff) | |
download | go-9f78aa77443389d61a3ef910a1c3d4628999d82c.tar.gz go-9f78aa77443389d61a3ef910a1c3d4628999d82c.zip |
runtime: add AIX operating system
This commit adds AIX operating system to runtime package for ppc64
architecture.
Only new files and minor changes are in this commit. Others
modifications in files like asm_ppc64.s will be in separate commits.
Updates: #25893
Change-Id: I9c5e073f5f3debb43b004ad1167694a5afd31cfd
Reviewed-on: https://go-review.googlesource.com/c/138716
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/netpoll.go')
-rw-r--r-- | src/runtime/netpoll.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/netpoll.go b/src/runtime/netpoll.go index f9c422650a..da822a7308 100644 --- a/src/runtime/netpoll.go +++ b/src/runtime/netpoll.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build darwin dragonfly freebsd js,wasm linux nacl netbsd openbsd solaris windows +// +build aix darwin dragonfly freebsd js,wasm linux nacl netbsd openbsd solaris windows package runtime @@ -166,8 +166,8 @@ func poll_runtime_pollWait(pd *pollDesc, mode int) int { if err != 0 { return err } - // As for now only Solaris uses level-triggered IO. - if GOOS == "solaris" { + // As for now only Solaris and AIX use level-triggered IO. + if GOOS == "solaris" || GOOS == "aix" { netpollarm(pd, mode) } for !netpollblock(pd, int32(mode), false) { |