summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/termios/ttyname.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/termios/ttyname.c b/libc/termios/ttyname.c
index fcd10adf0..abd1beb95 100644
--- a/libc/termios/ttyname.c
+++ b/libc/termios/ttyname.c
@@ -35,6 +35,7 @@ static const char dirlist[] =
/* 12345670123 */
"\010/dev/vc/\0" /* Try /dev/vc first (be devfs compatible) */
"\011/dev/tts/\0" /* and /dev/tts next (be devfs compatible) */
+"\011/dev/pty/\0" /* and /dev/pty next (be devfs compatible) */
"\011/dev/pts/\0" /* and try /dev/pts next */
"\005/dev/\0"; /* and try walking through /dev last */