diff options
Diffstat (limited to 'usr.bin/window/ttoutput.c')
-rw-r--r-- | usr.bin/window/ttoutput.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/window/ttoutput.c b/usr.bin/window/ttoutput.c index cc9afd9..1be0fa0 100644 --- a/usr.bin/window/ttoutput.c +++ b/usr.bin/window/ttoutput.c @@ -43,6 +43,7 @@ static char rcsid[] = #include "ww.h" #include "tt.h" #include <errno.h> +#include <unistd.h> /* * Buffered output package. @@ -65,7 +66,7 @@ ttflush() wwnflush++; for (p = tt_ob; p < tt_obp;) { wwnwr++; - n = write(1, p, tt_obp - p); + n = write(STDOUT_FILENO, p, tt_obp - p); if (n < 0) { wwnwre++; if (errno != EWOULDBLOCK) { |