summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/doscmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/doscmd/doscmd.c')
-rw-r--r--usr.bin/doscmd/doscmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/doscmd/doscmd.c b/usr.bin/doscmd/doscmd.c
index 8b6727b..7463af6 100644
--- a/usr.bin/doscmd/doscmd.c
+++ b/usr.bin/doscmd/doscmd.c
@@ -39,6 +39,7 @@
#include <errno.h>
#include <limits.h>
+#include <paths.h>
#include <pwd.h>
#include <signal.h>
#include <unistd.h>
@@ -116,7 +117,7 @@ main(int argc, char **argv)
/* XXX should only be for tty mode */
- fd = open ("/dev/null", O_RDWR);
+ fd = open (_PATH_DEVNULL, O_RDWR);
if (fd != 3)
dup2 (fd, 3); /* stdaux */
if (fd != 4)
OpenPOWER on IntegriCloud