From d634ea5f3f3ea51190b9e546f5e2c4eaaffdf5b4 Mon Sep 17 00:00:00 2001 From: Liam Galvin Date: Mon, 13 Aug 2018 17:43:38 +0100 Subject: [PATCH] try to fix darwin pty --- pty/pty_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pty/pty_darwin.go b/pty/pty_darwin.go index 536daf5..3a0f1f8 100644 --- a/pty/pty_darwin.go +++ b/pty/pty_darwin.go @@ -59,7 +59,7 @@ func ptsname(file *os.File) (name string, err error) { return "", errors.New("TIOCPTYGNAME string not NUL-terminated") } -func ioctl(file *os.File, command uint, arg uintptr) (int, error) { +func ioctl(file *os.File, command uint, arg uintptr) (uintptr, error) { _, _, err := syscall.Syscall(syscall.SYS_IOCTL, uintptr(file.Fd()), uintptr(command), uintptr(unsafe.Pointer(&arg))) if err != 0 {