summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorDoug Rabson <dfr@rabson.org>2022-05-08 12:54:05 +0100
committerDoug Rabson <dfr@rabson.org>2022-08-13 07:53:34 +0100
commitb806e9f360c5a502c59f51d6ea43ce990a577e5e (patch)
treefc89531d2aa3f41235a37fb327aae9ecdafa860c /pkg
parent6df0ceb9a2100948f9be7fb722772d9a7f25c081 (diff)
downloadpodman-b806e9f360c5a502c59f51d6ea43ce990a577e5e.tar.gz
podman-b806e9f360c5a502c59f51d6ea43ce990a577e5e.tar.bz2
podman-b806e9f360c5a502c59f51d6ea43ce990a577e5e.zip
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 <dfr@rabson.org>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/util/utils_freebsd.go12
-rw-r--r--pkg/util/utils_unsupported.go4
2 files changed, 14 insertions, 2 deletions
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