From: Russ Cox Date: Wed, 12 Nov 2014 04:19:59 +0000 (-0500) Subject: [dev.cc] runtime/cgo: add missing import _ "unsafe" for //go:linkname X-Git-Tag: go1.5beta1~2688^2~64 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=22293bb1a47205160175178ec0f386347740bebb;p=gostls13.git [dev.cc] runtime/cgo: add missing import _ "unsafe" for //go:linkname Will prod freebsd build along. Not claiming it will fix it. TBR=r CC=golang-codereviews https://golang.org/cl/171580044 --- diff --git a/src/runtime/cgo/freebsd.go b/src/runtime/cgo/freebsd.go index 09ffa2377a..f0628b7aa0 100644 --- a/src/runtime/cgo/freebsd.go +++ b/src/runtime/cgo/freebsd.go @@ -6,6 +6,8 @@ package cgo +import _ "unsafe" + // Supply environ and __progname, because we don't // link against the standard FreeBSD crt0.o and the // libc dynamic library needs them. diff --git a/src/runtime/cgo/netbsd.go b/src/runtime/cgo/netbsd.go index 9088e35d47..67f96530c1 100644 --- a/src/runtime/cgo/netbsd.go +++ b/src/runtime/cgo/netbsd.go @@ -6,6 +6,8 @@ package cgo +import _ "unsafe" + // Supply environ and __progname, because we don't // link against the standard NetBSD crt0.o and the // libc dynamic library needs them. diff --git a/src/runtime/cgo/openbsd.go b/src/runtime/cgo/openbsd.go index b59a7c2c2a..29ebcf83aa 100644 --- a/src/runtime/cgo/openbsd.go +++ b/src/runtime/cgo/openbsd.go @@ -6,6 +6,8 @@ package cgo +import _ "unsafe" + // Supply environ, __progname and __guard_local, because // we don't link against the standard OpenBSD crt0.o and // the libc dynamic library needs them.