summaryrefslogtreecommitdiff
path: root/libexec/bootpd/bootpgw/bootpgw.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/bootpd/bootpgw/bootpgw.c')
-rw-r--r--libexec/bootpd/bootpgw/bootpgw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libexec/bootpd/bootpgw/bootpgw.c b/libexec/bootpd/bootpgw/bootpgw.c
index b552eb346427..7271a7ad4330 100644
--- a/libexec/bootpd/bootpgw/bootpgw.c
+++ b/libexec/bootpd/bootpgw/bootpgw.c
@@ -25,6 +25,8 @@ ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
************************************************************************/
+/* $FreeBSD$ */
+
/*
* BOOTPGW is typically used to forward BOOTP client requests from
* one subnet to a BOOTP server on a different subnet.
@@ -54,6 +56,7 @@ SOFTWARE.
#include <errno.h>
#include <ctype.h>
#include <netdb.h>
+#include <paths.h>
#include <syslog.h>
#include <assert.h>
@@ -372,7 +375,7 @@ main(argc, argv)
#ifdef NO_SETSID
setpgrp(0,0);
#ifdef TIOCNOTTY
- n = open("/dev/tty", O_RDWR);
+ n = open(_PATH_TTY, O_RDWR);
if (n >= 0) {
ioctl(n, TIOCNOTTY, (char *) 0);
(void) close(n);