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 {