summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-11-11 23:19:59 -0500
committerRuss Cox <rsc@golang.org>2014-11-11 23:19:59 -0500
commit3e28941647fbeec0a95d74e19587ac73fc67f3be (patch)
tree069204b5533fdf1129eb35116254bc5fb725e0c7 /src
parentef35f8a674d61b2946ba2a3d4340a28b3d8ae96e (diff)
downloadgo-3e28941647fbeec0a95d74e19587ac73fc67f3be.tar.gz
[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://codereview.appspot.com/171580044
Diffstat (limited to 'src')
-rw-r--r--src/runtime/cgo/freebsd.go2
-rw-r--r--src/runtime/cgo/netbsd.go2
-rw-r--r--src/runtime/cgo/openbsd.go2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/cgo/freebsd.go b/src/runtime/cgo/freebsd.go
index 09ffa2377..f0628b7aa 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 9088e35d4..67f96530c 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 b59a7c2c2..29ebcf83a 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.