[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
This commit is contained in:
Russ Cox 2014-11-11 23:19:59 -05:00
parent aac17fd4e1
commit 22293bb1a4
3 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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.