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 | 2cd05c34046c4802fb2494c718d651045c2a3eb0 (patch) | |
tree | 1da64a622d63dd9dfb896a98a2808881db2034a2 | |
parent | 9bc842ca180d88d3cf4956b37dadcc21c53eded8 (diff) | |
download | go-2cd05c34046c4802fb2494c718d651045c2a3eb0.tar.gz go-2cd05c34046c4802fb2494c718d651045c2a3eb0.zip |
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://golang.org/cl/171290043
-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 3c95ff354e..c233c8ba9a 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 aefc481e64..4876b2abe4 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 de38bb7707..076cc87f12 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 7c2b6c1737..476649544d 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 |