From f9d4a063d13843279f4c2306fdd7442d5bf22e82 Mon Sep 17 00:00:00 2001 From: Denis Barakhtanov Date: Fri, 24 Feb 2017 10:16:21 +1100 Subject: [PATCH] Fixed compilation for Solaris There are missing "io" import and unused variable Releated issues #471 #289 --- terminal_solaris.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal_solaris.go b/terminal_solaris.go index f3d6f96..3c86b1a 100644 --- a/terminal_solaris.go +++ b/terminal_solaris.go @@ -3,6 +3,7 @@ package logrus import ( + "io" "os" "golang.org/x/sys/unix" @@ -10,7 +11,6 @@ import ( // IsTerminal returns true if the given file descriptor is a terminal. func IsTerminal(f io.Writer) bool { - var termios Termios switch v := f.(type) { case *os.File: _, err := unix.IoctlGetTermios(int(v.Fd()), unix.TCGETA)