summaryrefslogtreecommitdiff
path: root/usr.sbin/atm/scspd/scspd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/atm/scspd/scspd.c')
-rw-r--r--usr.sbin/atm/scspd/scspd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/atm/scspd/scspd.c b/usr.sbin/atm/scspd/scspd.c
index a8a6d89cd0b1..a6f03f34de92 100644
--- a/usr.sbin/atm/scspd/scspd.c
+++ b/usr.sbin/atm/scspd/scspd.c
@@ -53,6 +53,7 @@
#include <errno.h>
#include <fcntl.h>
#include <libatm.h>
+#include <paths.h>
#include <stdio.h>
#include <string.h>
#include <syslog.h>
@@ -284,7 +285,7 @@ start_daemon()
scsp_log(LOG_ERR, "can't change process group");
exit(1);
}
- fd = open("/dev/tty", O_RDWR);
+ fd = open(_PATH_TTY, O_RDWR);
if (fd >= 0) {
ioctl(fd, TIOCNOTTY, (char *)0);
close(fd);