mirror of https://github.com/liamg/aminal.git
try to fix darwin pty
This commit is contained in:
parent
2ee5aeda8b
commit
d634ea5f3f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue