From b806e9f360c5a502c59f51d6ea43ce990a577e5e Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Sun, 8 May 2022 12:54:05 +0100 Subject: pkg: Build pkg/util on FreeBSD Remove freebsd from the unsupported list and add missing symbols. [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson --- pkg/util/utils_freebsd.go | 12 ++++++++++++ pkg/util/utils_unsupported.go | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 pkg/util/utils_freebsd.go diff --git a/pkg/util/utils_freebsd.go b/pkg/util/utils_freebsd.go new file mode 100644 index 000000000..17436ae81 --- /dev/null +++ b/pkg/util/utils_freebsd.go @@ -0,0 +1,12 @@ +//go:build freebsd +// +build freebsd + +package util + +import ( + "errors" +) + +func GetContainerPidInformationDescriptors() ([]string, error) { + return []string{}, errors.New("this function is not supported on freebsd") +} diff --git a/pkg/util/utils_unsupported.go b/pkg/util/utils_unsupported.go index 3a0f8646b..26fb7adf9 100644 --- a/pkg/util/utils_unsupported.go +++ b/pkg/util/utils_unsupported.go @@ -1,5 +1,5 @@ -//go:build darwin || windows -// +build darwin windows +//go:build darwin || windows || freebsd +// +build darwin windows freebsd package util -- cgit v1.2.3-54-g00ecf