Commit e98f2d59 authored by Russ Cox's avatar Russ Cox

[dev.cc] runtime/cgo: add comment about import _ "unsafe"

LGTM=bradfitz, r
R=r, bradfitz
CC=golang-codereviews
https://golang.org/cl/167650043
parent a9695a5d
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
package cgo package cgo
import _ "unsafe" import _ "unsafe" // for go:linkname
// Supply environ and __progname, because we don't // Supply environ and __progname, because we don't
// link against the standard DragonFly crt0.o and the // link against the standard DragonFly crt0.o and the
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
package cgo package cgo
import _ "unsafe" import _ "unsafe" // for go:linkname
// Supply environ and __progname, because we don't // Supply environ and __progname, because we don't
// link against the standard FreeBSD crt0.o and the // link against the standard FreeBSD crt0.o and the
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
package cgo package cgo
import _ "unsafe" import _ "unsafe" // for go:linkname
//go:linkname _iscgo runtime.iscgo //go:linkname _iscgo runtime.iscgo
var _iscgo bool = true var _iscgo bool = true
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
package cgo package cgo
import _ "unsafe" import _ "unsafe" // for go:linkname
// Supply environ and __progname, because we don't // Supply environ and __progname, because we don't
// link against the standard NetBSD crt0.o and the // link against the standard NetBSD crt0.o and the
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
package cgo package cgo
import _ "unsafe" import _ "unsafe" // for go:linkname
// Supply environ, __progname and __guard_local, because // Supply environ, __progname and __guard_local, because
// we don't link against the standard OpenBSD crt0.o and // we don't link against the standard OpenBSD crt0.o and
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
package cgo package cgo
import _ "unsafe" import _ "unsafe" // for go:linkname
//go:cgo_import_static x_cgo_setenv //go:cgo_import_static x_cgo_setenv
//go:linkname x_cgo_setenv x_cgo_setenv //go:linkname x_cgo_setenv x_cgo_setenv
......
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