diff options
author | Russ Cox <rsc@golang.org> | 2014-11-09 20:20:45 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-11-09 20:20:45 -0500 |
commit | eb427bbf1aacc3f9d4eaf60240d033ae35a8461c (patch) | |
tree | 01b708712b963723df06c581de45b9e4db802d11 /src/runtime/cgo | |
parent | 3e7d4c2064a727c0a1e79430b46fb63846cd2537 (diff) | |
download | go-eb427bbf1aacc3f9d4eaf60240d033ae35a8461c.tar.gz |
runtime/cgo: add +build tags to files named for $GOOS
These are being built into the runtime/cgo for every
operating system. It doesn't seem to matter, but
restore the Go 1.3 behavior anyway.
LGTM=r
R=r, dave
CC=golang-codereviews
https://codereview.appspot.com/171290043
Diffstat (limited to 'src/runtime/cgo')
-rw-r--r-- | src/runtime/cgo/dragonfly.c | 2 | ||||
-rw-r--r-- | src/runtime/cgo/freebsd.c | 2 | ||||
-rw-r--r-- | src/runtime/cgo/netbsd.c | 2 | ||||
-rw-r--r-- | src/runtime/cgo/openbsd.c | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/src/runtime/cgo/dragonfly.c b/src/runtime/cgo/dragonfly.c index 3c95ff354..c233c8ba9 100644 --- a/src/runtime/cgo/dragonfly.c +++ b/src/runtime/cgo/dragonfly.c @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build dragonfly + #include "textflag.h" // Supply environ and __progname, because we don't diff --git a/src/runtime/cgo/freebsd.c b/src/runtime/cgo/freebsd.c index aefc481e6..4876b2abe 100644 --- a/src/runtime/cgo/freebsd.c +++ b/src/runtime/cgo/freebsd.c @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build freebsd + #include "textflag.h" // Supply environ and __progname, because we don't diff --git a/src/runtime/cgo/netbsd.c b/src/runtime/cgo/netbsd.c index de38bb770..076cc87f1 100644 --- a/src/runtime/cgo/netbsd.c +++ b/src/runtime/cgo/netbsd.c @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build netbsd + #include "textflag.h" // Supply environ and __progname, because we don't diff --git a/src/runtime/cgo/openbsd.c b/src/runtime/cgo/openbsd.c index 7c2b6c173..476649544 100644 --- a/src/runtime/cgo/openbsd.c +++ b/src/runtime/cgo/openbsd.c @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build openbsd + #include "textflag.h" // Supply environ, __progname and __guard_local, because |