try to fix darwin pty

This commit is contained in:
Liam Galvin 2018-08-13 17:43:38 +01:00
parent 2ee5aeda8b
commit d634ea5f3f
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ func ptsname(file *os.File) (name string, err error) {
return "", errors.New("TIOCPTYGNAME string not NUL-terminated") 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()), _, _, err := syscall.Syscall(syscall.SYS_IOCTL, uintptr(file.Fd()),
uintptr(command), uintptr(unsafe.Pointer(&arg))) uintptr(command), uintptr(unsafe.Pointer(&arg)))
if err != 0 { if err != 0 {