]> granicus.if.org Git - vim/commitdiff
patch 8.2.1173: tee doesn't build on some systems v8.2.1173
authorBram Moolenaar <Bram@vim.org>
Fri, 10 Jul 2020 18:45:31 +0000 (20:45 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 10 Jul 2020 18:45:31 +0000 (20:45 +0200)
Problem:    Tee doesn't build on some systems.
Solution:   Include header files. (Dominique Pelle, closes #6431)

src/tee/tee.c
src/version.c

index c668d2d1e3ac409bee6f2081d28654ea7b791353..ba0e4abd7f981cb11a3e8e68fbceda95025b9965 100644 (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)
        {
index 7f71d14890c4211cf27a33362d05ddb81c4400cd..2fa47040cb4d3f36ae3f81509e02915f64a5a4d5 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1173,
 /**/
     1172,
 /**/