From 701912b5e75a688b2146c65219f995fea9194def Mon Sep 17 00:00:00 2001 From: Benny Siegert Date: Sat, 31 Dec 2022 11:54:35 +0100 Subject: [PATCH] Enable uname collector on NetBSD too This collector works just fine without any further changes. Signed-off-by: Benny Siegert --- collector/uname.go | 4 ++-- collector/uname_bsd.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/collector/uname.go b/collector/uname.go index 14cfefb3..76e66b7e 100644 --- a/collector/uname.go +++ b/collector/uname.go @@ -11,8 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build (darwin || freebsd || openbsd || linux) && !nouname -// +build darwin freebsd openbsd linux +//go:build (darwin || freebsd || openbsd || netbsd || linux) && !nouname +// +build darwin freebsd openbsd netbsd linux // +build !nouname package collector diff --git a/collector/uname_bsd.go b/collector/uname_bsd.go index 736b3d12..69bf38e9 100644 --- a/collector/uname_bsd.go +++ b/collector/uname_bsd.go @@ -11,8 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build (darwin || freebsd || openbsd) && !nouname -// +build darwin freebsd openbsd +//go:build (darwin || freebsd || openbsd || netbsd) && !nouname +// +build darwin freebsd openbsd netbsd // +build !nouname package collector