patch 8.2.1173: tee doesn't build on some systems

Problem:    Tee doesn't build on some systems.
Solution:   Include header files. (Dominique Pelle, closes #6431)
This commit is contained in:
Bram Moolenaar
2020-07-10 20:45:31 +02:00
parent 08fc48492a
commit 4004315292
2 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,8 @@
#endif
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#ifdef _WIN32
@ -132,9 +134,11 @@ main(int argc, char *argv[])
exit(1);
}
}
#ifdef _WIN32
setmode(fileno(stdin), O_BINARY);
fflush(stdout); /* needed for _fsetmode(stdout) */
setmode(fileno(stdout), O_BINARY);
#endif
while ((n = myfread(buf, sizeof(char), sizeof(buf), stdin)) > 0)
{

View File

@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1173,
/**/
1172,
/**/