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:
@ -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)
|
||||
{
|
||||
|
||||
@ -754,6 +754,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1173,
|
||||
/**/
|
||||
1172,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user