summaryrefslogtreecommitdiffhomepage
path: root/go
diff options
context:
space:
mode:
authorDanielle De Leo <d.deleo@f5.com>2024-01-09 13:14:41 -0500
committerDani De Leo <danielle@fastmail.net>2024-01-10 11:15:48 -0500
commit7e03a6cc6b6c59c0aefa385d6405ad3814f153fa (patch)
tree468cc05a7809ec180237f8db2aae588e8908af40 /go
parent263460d9302eb95f58fcd1216264e859bcafc3e9 (diff)
downloadunit-7e03a6cc6b6c59c0aefa385d6405ad3814f153fa.tar.gz
unit-7e03a6cc6b6c59c0aefa385d6405ad3814f153fa.tar.bz2
Go: Add missing +build and go:build comments
A RHEL 8 test was failing because it uses go1.16. The old style must be retained for backwards compat. Fixes: 9a36de84c ("Go: Use Homebrew include paths") Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Reviewed-by: Dylan Arbour <d.arbour@f5.com> Signed-off-by: Danielle De Leo <d.deleo@f5.com>
Diffstat (limited to 'go')
-rw-r--r--go/ldflags-darwin.go1
-rw-r--r--go/ldflags-lrt.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/go/ldflags-darwin.go b/go/ldflags-darwin.go
index 34cfac1a..77114ee4 100644
--- a/go/ldflags-darwin.go
+++ b/go/ldflags-darwin.go
@@ -1,4 +1,5 @@
//go:build darwin
+// +build darwin
/*
* Copyright (C) Danielle De Leo
diff --git a/go/ldflags-lrt.go b/go/ldflags-lrt.go
index f5a63508..68a29145 100644
--- a/go/ldflags-lrt.go
+++ b/go/ldflags-lrt.go
@@ -1,3 +1,4 @@
+//go:build linux || netbsd
// +build linux netbsd
/*