Skip to content
Snippets Groups Projects
Commit 40043152 authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

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)
parent 08fc4849
No related branches found
Tags v8.2.1173
No related merge requests found
...@@ -32,6 +32,8 @@ ...@@ -32,6 +32,8 @@
#endif #endif
#include <malloc.h> #include <malloc.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef _WIN32 #ifdef _WIN32
...@@ -132,9 +134,11 @@ main(int argc, char *argv[]) ...@@ -132,9 +134,11 @@ main(int argc, char *argv[])
exit(1); exit(1);
} }
} }
#ifdef _WIN32
setmode(fileno(stdin), O_BINARY); setmode(fileno(stdin), O_BINARY);
fflush(stdout); /* needed for _fsetmode(stdout) */ fflush(stdout); /* needed for _fsetmode(stdout) */
setmode(fileno(stdout), O_BINARY); setmode(fileno(stdout), O_BINARY);
#endif
while ((n = myfread(buf, sizeof(char), sizeof(buf), stdin)) > 0) while ((n = myfread(buf, sizeof(char), sizeof(buf), stdin)) > 0)
{ {
......
...@@ -754,6 +754,8 @@ static char *(features[]) = ...@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1173,
/**/ /**/
1172, 1172,
/**/ /**/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment