barometer: update DMA's vendoring packages
[barometer.git] / src / dma / vendor / github.com / mattn / go-isatty / isatty_android.go
@@ -1,12 +1,10 @@
-// +build linux
-// +build ppc64 ppc64le
+// +build android
 
 package isatty
 
 import (
+       "syscall"
        "unsafe"
-
-       syscall "golang.org/x/sys/unix"
 )
 
 const ioctlReadTermios = syscall.TCGETS
@@ -17,3 +15,9 @@ func IsTerminal(fd uintptr) bool {
        _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
        return err == 0
 }
+
+// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
+// terminal. This is also always false on this environment.
+func IsCygwinTerminal(fd uintptr) bool {
+       return false
+}