From 2ee5aeda8b99b2c8bf374714b2272720852ce64e Mon Sep 17 00:00:00 2001 From: Liam Galvin Date: Mon, 13 Aug 2018 17:42:02 +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 b15343c..536daf5 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 int) (int, error) { +func ioctl(file *os.File, command uint, arg uintptr) (int, error) { _, _, err := syscall.Syscall(syscall.SYS_IOCTL, uintptr(file.Fd()), uintptr(command), uintptr(unsafe.Pointer(&arg))) if err != 0 {