From 345783024a348cbb893bf6f08f1d7ab79d2e22ff Mon Sep 17 00:00:00 2001 From: dustin-ward Date: Thu, 25 Jan 2024 16:17:33 -0500 Subject: [PATCH] add support for building on z/OS --- constants_zos.go | 8 ++++++++ termenv_posix.go | 4 ++-- termenv_unix.go | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 constants_zos.go diff --git a/constants_zos.go b/constants_zos.go new file mode 100644 index 0000000..4262f03 --- /dev/null +++ b/constants_zos.go @@ -0,0 +1,8 @@ +package termenv + +import "golang.org/x/sys/unix" + +const ( + tcgetattr = unix.TCGETS + tcsetattr = unix.TCSETS +) diff --git a/termenv_posix.go b/termenv_posix.go index b2109b7..c971dd9 100644 --- a/termenv_posix.go +++ b/termenv_posix.go @@ -1,5 +1,5 @@ -//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd -// +build darwin dragonfly freebsd linux netbsd openbsd +//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || zos +// +build darwin dragonfly freebsd linux netbsd openbsd zos package termenv diff --git a/termenv_unix.go b/termenv_unix.go index 847fa9b..d38cb27 100644 --- a/termenv_unix.go +++ b/termenv_unix.go @@ -1,5 +1,5 @@ -//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris -// +build darwin dragonfly freebsd linux netbsd openbsd solaris +//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos +// +build darwin dragonfly freebsd linux netbsd openbsd solaris zos package termenv