mirror of https://github.com/golang/go.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
This commit is contained in:
parent
aac17fd4e1
commit
22293bb1a4
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue