Commit 22293bb1 authored by Russ Cox's avatar Russ Cox

[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
parent aac17fd4
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
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