]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.cc] runtime/cgo: add missing import _ "unsafe" for //go:linkname
authorRuss Cox <rsc@golang.org>
Wed, 12 Nov 2014 04:19:59 +0000 (23:19 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 12 Nov 2014 04:19:59 +0000 (23:19 -0500)
Will prod freebsd build along.
Not claiming it will fix it.

TBR=r
CC=golang-codereviews
https://golang.org/cl/171580044

src/runtime/cgo/freebsd.go
src/runtime/cgo/netbsd.go
src/runtime/cgo/openbsd.go

index 09ffa2377a775a781a95dddc90e1de65990fcf00..f0628b7aa06479ccb75b3ab7e22632d9795840ea 100644 (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.
index 9088e35d477bd836cd9fbda5c87725841a9613b7..67f96530c1f890bb8d46b7cb485c2dc66aac1156 100644 (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.
index b59a7c2c2a8151f04b4dedc1e18edd267d50f57e..29ebcf83aac25d96d1fbcb6c51fa0976b2aeeb06 100644 (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.