Skip to content

Commit

Permalink
add support for building on z/OS
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin-ward authored and muesli committed Feb 5, 2024
1 parent c6780f6 commit 3457830
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions constants_zos.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package termenv

import "golang.org/x/sys/unix"

const (
tcgetattr = unix.TCGETS
tcsetattr = unix.TCSETS
)
4 changes: 2 additions & 2 deletions termenv_posix.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions termenv_unix.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 3457830

Please sign in to comment.