aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/emacsclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 8f0231db540..87cc9de6f51 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -1429,7 +1429,7 @@ main (argc, argv)
1429 char *type = egetenv ("TERM"); 1429 char *type = egetenv ("TERM");
1430 char *tty_name = NULL; 1430 char *tty_name = NULL;
1431#ifndef WINDOWSNT 1431#ifndef WINDOWSNT
1432 tty_name = ttyname (fileno (stdin)); 1432 tty_name = ttyname (fileno (stdout));
1433#endif 1433#endif
1434 1434
1435 if (! tty_name) 1435 if (! tty_name)