Ticket #53143: tty_TIOCGPTN.patch
File tty_TIOCGPTN.patch, 330 bytes (added by ballapete (Peter "Pete" Dyballa), 8 years ago) |
---|
-
src/unix/tty.c
old new 44 44 int dummy; 45 45 46 46 result = ioctl(fd, TIOCGPTN, &dummy) != 0; 47 #elif defined(__APPLE__)48 char dummy[256];49 50 result = ioctl(fd, TIOCPTYGNAME, &dummy) != 0;51 47 #else 52 48 /* Fallback to ptsname 53 49 */