]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/cgo: add +build tags to files named for $GOOS
authorRuss Cox <rsc@golang.org>
Mon, 10 Nov 2014 01:20:45 +0000 (20:20 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 10 Nov 2014 01:20:45 +0000 (20:20 -0500)
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

src/runtime/cgo/dragonfly.c
src/runtime/cgo/freebsd.c
src/runtime/cgo/netbsd.c
src/runtime/cgo/openbsd.c

index 3c95ff354e7f9451f5658b15b39736f82399b28f..c233c8ba9a3c14e85b31f00aabbf4271150ae7fc 100644 (file)
@@ -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
index aefc481e64cc331652a209be064a3194a20a309d..4876b2abe47641df4ccd17ba9cf581b5414c341f 100644 (file)
@@ -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
index de38bb7707888161237c726313a7296ee7ee2352..076cc87f12a7c70798c8f1fe0aca00630ac2d22a 100644 (file)
@@ -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
index 7c2b6c17378113705ef90c9688988c34ef9c12f2..476649544dff3cc27eb0111a0bec89940ed0872b 100644 (file)
@@ -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