From: Bram Moolenaar Date: Fri, 10 Jul 2020 18:45:31 +0000 (+0200) Subject: patch 8.2.1173: tee doesn't build on some systems X-Git-Tag: v8.2.1173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40043152924827fa8c4064951065ff507c610164;p=thirdparty%2Fvim.git 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) --- diff --git a/src/tee/tee.c b/src/tee/tee.c index c668d2d1e3..ba0e4abd7f 100644 --- a/src/tee/tee.c +++ b/src/tee/tee.c @@ -32,6 +32,8 @@ #endif #include #include +#include +#include #include #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) { diff --git a/src/version.c b/src/version.c index 7f71d14890..2fa47040cb 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1173, /**/ 1172, /**/