aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/cgo/gcc_libinit.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2023-01-24 10:16:42 +0100
committerTobias Klauser <tobias.klauser@gmail.com>2023-01-24 22:38:02 +0000
commit91c1c5922dcfc646fa9b1c2b3d506abe0956e97f (patch)
tree6b012026275102d1adc5256b70c4afe8b7f770cd /src/runtime/cgo/gcc_libinit.c
parent0b3f58c48e3298e49e27f80dc748f0652339d63e (diff)
downloadgo-91c1c5922dcfc646fa9b1c2b3d506abe0956e97f.tar.xz
runtime/cgo: use //go:build lines in C and assembly files
Replace deprecated // +build lines by their respective //go:build line counterpart. Also remove build constraints implied by file name or type. Change-Id: I8d18cd40071ca28d7654da8f0d22841f43729ca6 Reviewed-on: https://go-review.googlesource.com/c/go/+/460538 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/runtime/cgo/gcc_libinit.c')
-rw-r--r--src/runtime/cgo/gcc_libinit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/runtime/cgo/gcc_libinit.c b/src/runtime/cgo/gcc_libinit.c
index 3304d95fdf..57620fe4de 100644
--- a/src/runtime/cgo/gcc_libinit.c
+++ b/src/runtime/cgo/gcc_libinit.c
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build cgo
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
+//go:build unix
#include <pthread.h>
#include <errno.h>