Commit 10576091 authored by Mikio Hara's avatar Mikio Hara

ipv6: simplify init function for freebsd

Change-Id: I515bdaf3f30b00d61c341295e549bb4c2163bd54
Reviewed-on: https://go-review.googlesource.com/11293Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent dab7b169
......@@ -50,8 +50,8 @@ var (
func init() {
if runtime.GOOS == "freebsd" && runtime.GOARCH == "386" {
archs, _ := syscall.Sysctl("kern.supported_archs")
for _, s := range strings.Split(archs, " ") {
if strings.TrimSpace(s) == "amd64" {
for _, s := range strings.Fields(archs) {
if s == "amd64" {
freebsd32o64 = true
break
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment