summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mrouted/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/mrouted/main.c')
-rw-r--r--usr.sbin/mrouted/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/mrouted/main.c b/usr.sbin/mrouted/main.c
index f3fc676..87ab3ff 100644
--- a/usr.sbin/mrouted/main.c
+++ b/usr.sbin/mrouted/main.c
@@ -33,6 +33,7 @@ static const char rcsid[] =
#include <varargs.h>
#endif
#include <fcntl.h>
+#include <paths.h>
#ifdef SNMP
#include "snmp.h"
@@ -384,7 +385,7 @@ main(argc, argv)
(void)setpgrp();
#else
#ifdef TIOCNOTTY
- t = open("/dev/tty", 2);
+ t = open(_PATH_TTY, 2);
if (t >= 0) {
(void)ioctl(t, TIOCNOTTY, (char *)0);
(void)close(t);
OpenPOWER on IntegriCloud