diff options
author | Russ Cox <rsc@golang.org> | 2014-11-12 14:54:04 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-11-12 14:54:04 -0500 |
commit | 7f4162b3d9492e6ae6438c78b77fdc5814d44e26 (patch) | |
tree | 65e6dc9a53cabb031ca454965ee60c652f55300f | |
parent | c4e7fbd4bc99ad5f4c76cdca520ba36761b029b0 (diff) | |
download | go-7f4162b3d9492e6ae6438c78b77fdc5814d44e26.tar.gz |
[dev.cc] runtime/cgo: add comment about import _ "unsafe"
LGTM=bradfitz, r
R=r, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/167650043
-rw-r--r-- | src/runtime/cgo/dragonfly.go | 2 | ||||
-rw-r--r-- | src/runtime/cgo/freebsd.go | 2 | ||||
-rw-r--r-- | src/runtime/cgo/iscgo.go | 2 | ||||
-rw-r--r-- | src/runtime/cgo/netbsd.go | 2 | ||||
-rw-r--r-- | src/runtime/cgo/openbsd.go | 2 | ||||
-rw-r--r-- | src/runtime/cgo/setenv.go | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/runtime/cgo/dragonfly.go b/src/runtime/cgo/dragonfly.go index 96eb8660e..69d52b5b2 100644 --- a/src/runtime/cgo/dragonfly.go +++ b/src/runtime/cgo/dragonfly.go @@ -6,7 +6,7 @@ package cgo -import _ "unsafe" +import _ "unsafe" // for go:linkname // Supply environ and __progname, because we don't // link against the standard DragonFly crt0.o and the diff --git a/src/runtime/cgo/freebsd.go b/src/runtime/cgo/freebsd.go index 3b0143236..62de1af8a 100644 --- a/src/runtime/cgo/freebsd.go +++ b/src/runtime/cgo/freebsd.go @@ -6,7 +6,7 @@ package cgo -import _ "unsafe" +import _ "unsafe" // for go:linkname // Supply environ and __progname, because we don't // link against the standard FreeBSD crt0.o and the diff --git a/src/runtime/cgo/iscgo.go b/src/runtime/cgo/iscgo.go index 5544fd1e3..61cba73d2 100644 --- a/src/runtime/cgo/iscgo.go +++ b/src/runtime/cgo/iscgo.go @@ -11,7 +11,7 @@ package cgo -import _ "unsafe" +import _ "unsafe" // for go:linkname //go:linkname _iscgo runtime.iscgo var _iscgo bool = true diff --git a/src/runtime/cgo/netbsd.go b/src/runtime/cgo/netbsd.go index 67f96530c..ac6b18a93 100644 --- a/src/runtime/cgo/netbsd.go +++ b/src/runtime/cgo/netbsd.go @@ -6,7 +6,7 @@ package cgo -import _ "unsafe" +import _ "unsafe" // for go:linkname // Supply environ and __progname, because we don't // link against the standard NetBSD crt0.o and the diff --git a/src/runtime/cgo/openbsd.go b/src/runtime/cgo/openbsd.go index 29ebcf83a..61af3a8e7 100644 --- a/src/runtime/cgo/openbsd.go +++ b/src/runtime/cgo/openbsd.go @@ -6,7 +6,7 @@ package cgo -import _ "unsafe" +import _ "unsafe" // for go:linkname // Supply environ, __progname and __guard_local, because // we don't link against the standard OpenBSD crt0.o and diff --git a/src/runtime/cgo/setenv.go b/src/runtime/cgo/setenv.go index 1612f87c2..97c8c6ac9 100644 --- a/src/runtime/cgo/setenv.go +++ b/src/runtime/cgo/setenv.go @@ -6,7 +6,7 @@ package cgo -import _ "unsafe" +import _ "unsafe" // for go:linkname //go:cgo_import_static x_cgo_setenv //go:linkname x_cgo_setenv x_cgo_setenv |