From 0b3184a5acb68043a6cf44b7c223d84d8badd930 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Fri, 26 Aug 2022 15:32:52 +0100 Subject: [PATCH] pkg/domain: Add terminal support for FreeBSD This just moves the code to files which can be shared with freebsd. [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson --- .../abi/terminal/{sigproxy_linux.go => sigproxy_commn.go} | 3 +++ .../abi/terminal/{terminal_linux.go => terminal_common.go} | 3 +++ pkg/domain/infra/abi/terminal/terminal_unsupported.go | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) rename pkg/domain/infra/abi/terminal/{sigproxy_linux.go => sigproxy_commn.go} (97%) rename pkg/domain/infra/abi/terminal/{terminal_linux.go => terminal_common.go} (98%) diff --git a/pkg/domain/infra/abi/terminal/sigproxy_linux.go b/pkg/domain/infra/abi/terminal/sigproxy_commn.go similarity index 97% rename from pkg/domain/infra/abi/terminal/sigproxy_linux.go rename to pkg/domain/infra/abi/terminal/sigproxy_commn.go index 16d345f06f..3a0132ef3c 100644 --- a/pkg/domain/infra/abi/terminal/sigproxy_linux.go +++ b/pkg/domain/infra/abi/terminal/sigproxy_commn.go @@ -1,3 +1,6 @@ +//go:build linux || freebsd +// +build linux freebsd + package terminal import ( diff --git a/pkg/domain/infra/abi/terminal/terminal_linux.go b/pkg/domain/infra/abi/terminal/terminal_common.go similarity index 98% rename from pkg/domain/infra/abi/terminal/terminal_linux.go rename to pkg/domain/infra/abi/terminal/terminal_common.go index 2225908710..afae2c0856 100644 --- a/pkg/domain/infra/abi/terminal/terminal_linux.go +++ b/pkg/domain/infra/abi/terminal/terminal_common.go @@ -1,3 +1,6 @@ +//go:build linux || freebsd +// +build linux freebsd + package terminal import ( diff --git a/pkg/domain/infra/abi/terminal/terminal_unsupported.go b/pkg/domain/infra/abi/terminal/terminal_unsupported.go index 8fe3257360..21ed6c8d4d 100644 --- a/pkg/domain/infra/abi/terminal/terminal_unsupported.go +++ b/pkg/domain/infra/abi/terminal/terminal_unsupported.go @@ -1,5 +1,5 @@ -//go:build !linux -// +build !linux +//go:build !linux && !freebsd +// +build !linux,!freebsd package terminal