mattn / go-tty

MIT License
208 stars 18 forks source link

Fix solaris support #45

Closed ichizok closed 2 years ago

ichizok commented 2 years ago

There are some compile errors on OpenIndiana (Golang 1.17).

% go run _example/readline.go
# github.com/mattn/go-tty
./tty_unix.go:40:34: undefined: syscall.SYS_IOCTL
./tty_unix.go:46:34: undefined: syscall.SYS_IOCTL
./tty_unix.go:67:31: undefined: syscall.SYS_IOCTL
./tty_unix.go:78:34: undefined: syscall.SYS_IOCTL

Rewrote syscall callings by using golang.org/x/sys/unix package.

mattn commented 2 years ago

LGTM

mattn commented 2 years ago

Thank you