aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/window/wwenviron.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/window/wwenviron.c')
-rw-r--r--usr.bin/window/wwenviron.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/window/wwenviron.c b/usr.bin/window/wwenviron.c
index 56034d47bda2..02db17409f49 100644
--- a/usr.bin/window/wwenviron.c
+++ b/usr.bin/window/wwenviron.c
@@ -36,12 +36,14 @@
#ifndef lint
static char sccsid[] = "@(#)wwenviron.c 8.1 (Berkeley) 6/6/93";
+static char rcsid[] = "@(#)$FreeBSD$";
#endif /* not lint */
#include "ww.h"
#if !defined(OLD_TTY) && !defined(TIOCSCTTY) && !defined(TIOCNOTTY)
#include <sys/ioctl.h>
#endif
+#include <paths.h>
#include <signal.h>
/*
@@ -57,7 +59,7 @@ register struct ww *wp;
char buf[1024];
#ifndef TIOCSCTTY
- if ((i = open("/dev/tty", 0)) < 0)
+ if ((i = open(_PATH_TTY, 0)) < 0)
goto bad;
if (ioctl(i, TIOCNOTTY, (char *)0) < 0)
goto bad;