diff options
Diffstat (limited to 'usr.sbin/atm')
-rw-r--r-- | usr.sbin/atm/atmarpd/atmarpd.c | 3 | ||||
-rw-r--r-- | usr.sbin/atm/scspd/scspd.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/atm/atmarpd/atmarpd.c b/usr.sbin/atm/atmarpd/atmarpd.c index 063a304..d221a59 100644 --- a/usr.sbin/atm/atmarpd/atmarpd.c +++ b/usr.sbin/atm/atmarpd/atmarpd.c @@ -52,6 +52,7 @@ #include <errno.h> #include <fcntl.h> #include <libatm.h> +#include <paths.h> #include <stdio.h> #include <string.h> #include <syslog.h> @@ -247,7 +248,7 @@ start_daemon() atmarp_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); diff --git a/usr.sbin/atm/scspd/scspd.c b/usr.sbin/atm/scspd/scspd.c index a8a6d89..a6f03f3 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); |