From 1f3472d942ba824034fb77cab6a6cfc1bc8a2c3c Mon Sep 17 00:00:00 2001 From: chigotc Date: Wed, 3 Apr 2019 14:10:15 +0200 Subject: [PATCH] icmp: add port for aix/ppc64 Change-Id: I719dd53a949725b4d63ecba37fad530de731d568 Reviewed-on: https://go-review.googlesource.com/c/net/+/170560 Run-TryBot: Mikio Hara TryBot-Result: Gobot Gobot Reviewed-by: Mikio Hara --- icmp/helper_posix.go | 2 +- icmp/listen_posix.go | 2 +- icmp/listen_stub.go | 2 +- icmp/message.go | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/icmp/helper_posix.go b/icmp/helper_posix.go index 398fd388..75e75575 100644 --- a/icmp/helper_posix.go +++ b/icmp/helper_posix.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 linux netbsd openbsd solaris windows +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris windows package icmp diff --git a/icmp/listen_posix.go b/icmp/listen_posix.go index 7fac4f96..e1b1aa96 100644 --- a/icmp/listen_posix.go +++ b/icmp/listen_posix.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 linux netbsd openbsd solaris windows +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris windows package icmp diff --git a/icmp/listen_stub.go b/icmp/listen_stub.go index 0816f1d4..3acd91dc 100644 --- a/icmp/listen_stub.go +++ b/icmp/listen_stub.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,!linux,!netbsd,!openbsd,!solaris,!windows +// +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows package icmp diff --git a/icmp/message.go b/icmp/message.go index 5fd040a6..40db65d0 100644 --- a/icmp/message.go +++ b/icmp/message.go @@ -25,8 +25,7 @@ import ( "golang.org/x/net/ipv6" ) -// BUG(mikio): This package is not implemented on AIX, JS, NaCl and -// Plan 9. +// BUG(mikio): This package is not implemented on JS, NaCl and Plan 9. var ( errInvalidConn = errors.New("invalid connection")